Can i get the Java Code which compare the differences between 2 PDF files and highlight or store the diffrence in separate file.
Any Help is really appriciated!
Thanks,
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35237
7
posted
0
Define "difference" - ar you just talking about the text it contains, or also other things like layout etc.? If it's just about the text then you can extract the text from both PDFs using a library such as PDFBox and maybe generate diff output.
i have to Compare the entire content (Image, space, text, numbers..etc) of the 2 PDF files, i have PDFBOX Library, but not sure how to code to compare 2 PDF files
luck, db
There are no new questions, but there may be new answers.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35237
7
posted
0
That's going to be tricky. Can you give an example of two simple PDFs, and what their "difference" would be according to your definition? Especially two that contain differing images.
There will definitely be no code you can just copy from somewhere - lots of experimentation and programming on your part will be required. You should expect this to be a lengthy process.
Uday Kumar Shanth
Greenhorn
Joined: Jan 08, 2013
Posts: 3
posted
0
Hi,
Example: 1. The text present in PDF1 is not matching/present in PDF2.
2. The position/line of the text present in PDF1 is not Matching with PDF2
3. The image/Image position present in PDF1 is not matching with PDF2
4. The result should generated to new doc/PDF/text
Thanks,
Uday Kumar
Joanne Neal
Rancher
Joined: Aug 05, 2005
Posts: 3011
9
posted
0
Uday Kumar Shanth wrote:Hi,
Example: 1. The text present in PDF1 is not matching/present in PDF2.
2. The position/line of the text present in PDF1 is not Matching with PDF2
3. The image/Image position present in PDF1 is not matching with PDF2
4. The result should generated to new doc/PDF/text