tags:

views:

248

answers:

5

Hi, I have generated two pdf files 1.MNTR305K.PRT.pdf (1862 pages) of 2760 KB 2.MNTR305K.PRT.pdf (1862 pages) of 7345 KB I saw each pdf file by comparing it's content and fonts. I found everything is same. I don't know why the why the second file took more size than the first one.Does any one help me how to find the difference.

Thanks in advance

+1  A: 

I have generated two pdf files

what are you using to generate the PDF?

If you are using iText api, then;

o Always use setFormFlattening before closing the stamp.

o If you are copying / merging pdf using iText then use freeReader before closing the reader.

A: 

BeyondCompare work for you?

http://www.scootersoftware.com/

marked
You should probably note that it's commercial. And I'm guessing that's not gonna work for the OP.
musicfreak
http://winmerge.org/ !
bobobobo
+1  A: 

Probably down the way the PDF creator is storing/compressing the page data. Have you had a look inside at the structures with Acrobat Pro?

+1  A: 

Acrobat has a "space auditor" that can tell you if the size increase is caused by images, fonts, format overhead, etc. Open the "PDF optimizer" and click on the 'Audit space usage..." button.

Dwight Kelly
+1  A: 

You can use i-net PDF content comparer to compare 2 PDF files.

Horcrux7