• Post Reply Bookmark Topic Watch Topic
  • New Topic

Comparing PDF files  RSS feed

 
shaiju mili
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a requirement where I need to compare 2 PDF files (one a local file and another is available from my webapplication).Could anybody tell me how can I compare two PDF files using java?

Regards
Shaiju
 
Martin Simons
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might try using the iText API. Google for "Java PDF iText" and it should be one of the first links.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What should be the result of the comparison? PDFs contain text, images, formatting information, watermarks, digital signatures, forms, document meta information, etc. Which of these do you want to look at?

In general, it's not possible to access information in PDFs. Some tools let you extract their text (e.g. JPedal), but that's about it.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!