My job is to compare the data in Pdf with Excel work Sheet to check weather the data is correct.

  • For that is there any tool to compare?


  • Is there any java code in eclipse for testing?

It is. Check out Apache Tika project, it supports both formats (and much more)

You can also use Apache JMeter for this as:

  • JMeter is free and open source
  • Given you have Tika libraries in the classpath - supports the same file types
  • Provides Assertions to conditionally fail samplers basing on response data

See How to Extract Data From Files With JMeter article for comprehensive step-by-step explanation.

  • Using JMeter here seems an overkill. JMeter is for performance testing. Plain Java with JUnit/TestNG will work well with TIKA and POI libraries. – dzieciou Jul 11 '16 at 5:41

Yes, it is possible. It is just a simple matter programming. How hard it will be depends on your programming skills (which might be lacking, if your preferred solution is a plugin for Eclipse).

You need to do a research for PDF parser in language of your choice. Or tool to convert PDF to text, then parse such text in your language of choice. If your language is Java, you will have many tools (but Java is less than optimal for text parsing, even if it is possible).


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.