PDA

View Full Version : [BUG] Do nothing just save, filesize increase


dllee
June 14th, 2006, 07:29 AM
At the first time, open a pdf file, press SAVE button and close the pdf file, the pdf is saved, and the filesize may change.(I think Foxit Reader will use its format to resave the pdf, so the filesize is changed, but it is OK, for the document is the same.)
Open this saved pdf file again, press SAVE button and close this pdf file, the filesize does not change.

There is no bug, if do not modify pdf just press SAVE button.
But if you do some modification and then press SAVE button, close the pdf file. After this, open this modified pdf file then press SAVE button, close the pdf file, the filesize increase!! If you do it again, the filesize increase again!!
i.e., open -> (modify) -> save -> close, the filesize increase, if the pdf file was modified by Foxit Reader, even do nothing just save.

I am using 2.0 beta build 0609.

Foxit Reader is really a good pdf viewer, and I suggest my friends to use it, a Chinese blog page for this http://blog.webs-tv.net/dllee/article/1889139
Thanks for your hard work.

dllee
June 15th, 2006, 05:25 AM
The attach files are sample pdf files for this problem.
testpdf0.pdf is the original pdf file created by OpenOffice.org 2.0.1.
testpdf1.pdf is testpdf0.pdf using Foxit Reader 2.0 Beta 0609 adding a dimension tool, and save.
The bug is, the filesize of the testpdf1.pdf is 24,480 bytes.
Open it by Foxit Reader 2.0 Beta 0609, and press SAVE button, and then close.
The filesize of the testpdf1.pdf increases to 25,044 bytes.
Again, open it, press SAVE, and then close.
The filesize of the testpdf1.pdf increases to 25,563 bytes.

The filesize of the testpdf0.pdf is 21,488 bytes.
Open it by Foxit Reader 2.0 Beta 0609, and press SAVE button, and then close.
The filesize of the testpdf0.pdf changes to 21,201 bytes.
Again, open it, press SAVE, and then close.
The filesize of the testpdf0.pdf remains the same.

Try it, you will find this bug.

arthur
June 16th, 2006, 01:35 AM
I think your title does not match your report exactly.
If you do nothing to PDF, Foxit Reader will of course not modify and make change to it. However, if you do some modification to PDFs, certain data will be changes and info needed will be added to PDFs, which leads to the increasement of filesize. This is normal and makes sense.
On the other hand, I tested your sample file, and don't find the file size increase very dramatically, which is, again, fine.
You can open your modified PDF with Foxit PDF Editor > Edit >Optimize to optimize your PDFs after modifications. Per my testing, your modified PDF goes from 23.9 kb to 22.7 kb.

dllee
June 28th, 2006, 05:29 AM
The "Do nothing" means do nothing to the already modified PDF file by Foxit Reader 2.0 Beta.

I agree with you that the modification makes file bigger. But do nothing to one modified PDF file just SAVE make PDF file bigger, again and again, that doesn't make sense and this make me think that Foxit Reader will save more data than modification, since do nothing just save makes filesize increasing.

Think of it, one man being afraid of data lost like me using Foxit Reader to edit some PDF file, and presses SAVE instinctively. The filesize increases.

with Foxit PDF Editor > Edit >Optimize ...I did not try Foxit PDF Editor yet, maybe it can reduce file PDF filesize, but it is not Foxit Reader.

I have to say, the Foxit Reader is really a good PDF Reader, and I had already removed Adobe PDF Reader from my system.

Thanks for your jobs.

h4l9k
June 28th, 2006, 01:11 PM
sorry for my english

I already probe the situation with Foxit READER beta 2 build 0609 and can't see the change in size

but have my clues

in the dialog for save as... there's a option (Save What:), i think this is the reason for the change in size, try saving your file with only "Document" selected and not "Document and Annotations"


---------------
I'm impress with this project, I'm looking for this for a long time, I'm a lover of linux and for me xpdf is the best pdf reader but for windows there's just a few ports not so good (some cygwin, gnuwin32,... implementations ), there's too gsview but it takes a bit to load, and the dialog of the license... well. Foxit is the best pdf reader (for Windows :P).

h4l9k
June 28th, 2006, 02:27 PM
oohh!! :) i see

the problem is when you add annotations

if you save as... and select document or document an annotation the size doesn't change, but if you just press save the size change. so, maybe is really a bug :D

dllee
June 29th, 2006, 05:55 PM
If you select "Document" not "Document and Annotations", the Foxit Reader seems only COPY the original file to the "Save as..." file. So the file size is the same. But, all the Foxit Reader 2 annotations features are not saved, it's too bad.

the problem is when you add annotations
Yes, the problem is AFTER you added annotations and saved.

And I don't think the Save as... and select "Document and Annotations" can fix this problem, you can try it. Download the testpdf1.pdf (24,480 bytes), open it in Foxit Reader 2, and select "Document and Annotations" and save as testpdf2.pdf. You will see, the filesize of the testpdf2.pdf is 25,044 bytes. This is the same increasement size, if you open testpdf1.pdf (24,480 bytes) and just press SAVE, the filesize of the testpdf1.pdf becomes 25,044 bytes.