That message from Reader means that the file is damaged in some way so that 
Reader had to repair it when it opened it.  Something you are doing in the 
editing/modification process is creating an invalid PDF.   And yes, in that 
case, it does a (full) save.

Leonard

From: Dennis Jenkins 
<dennis.jenkins...@gmail.com<mailto:dennis.jenkins...@gmail.com>>
Date: Monday, May 5, 2014 at 12:03 AM
To: 
"podofo-users@lists.sourceforge.net<mailto:podofo-users@lists.sourceforge.net>" 
<podofo-users@lists.sourceforge.net<mailto:podofo-users@lists.sourceforge.net>>
Subject: Re: [Podofo-users] How to reduce Pdf size




On Sun, May 4, 2014 at 5:06 PM, Leonard Rosenthol 
<lrose...@adobe.com<mailto:lrose...@adobe.com>> wrote:
Adobe Reader doesn't re-save PDFs - so perhaps you mean Adobe Acrobat??

Leonard


Hello Leonard,

    I do mean "Adobe Reader XI" on 32-bit Windows XP.  I'm not editing the PDF, 
exactly.  Let me provide an example.

    The IRS provides a four-page PDF for the "941" report, and a second report 
(addenda) called the "Schedule B".  Only two pages of the 941 have actual "pdf 
form" data.

    My program will create a new (empty) PDF, open the 941, splice in two of 
the four pages, splice in the Schedule B (if needed), and then fill in the form 
fields with the proper data.  I must also embed another font and create an 
appearance stream (you helped me with this logic a few years ago).  The 
software will then save the PDF.

    If I open this PDF in Adobe Reader, it looked correct (form fields are 
filled in).  However, if I attempt to exit/close Adobe Reader, it prompts me 
"Do you want to save changes to XXX.pdf before closing?" (even if I changed 
nothing while Adobe Reader was open).  If I decline, then Adobe Reader exits 
and nothing special happens.  If I elect to "save my changes", then the 
resulting PDF on disk is smaller then the original, a new top-level section 
called "/Metadata" is created, and the "/Acroform" is altered.  I have yet to 
determine what gets removed from the PDF that makes it smaller, but I suspect 
that it is the font that I had to add earlier.  If I don't add that font, then 
the fields that I filled in are not visible in Adobe Reader unless the 
individual field is selected by the user (input focus).

    I can repeat the above with the other forms that my software will populate 
(Arizona A1-QRT and Arizona UC-018).

(Federal 941 report, file size difference is not much)
$ ls -l ./tmp/report*.pdf
-rw-r--r-- 1 djenkins djenkins 654315 May  4 22:59 ./tmp/report.pdf
-rw-r--r-- 1 djenkins djenkins 606551 May  4 23:00 ./tmp/report2.pdf

(AZ UC-018 report, size difference is significant)
$ ls -l ./tmp/report*.pdf
-rw-r--r-- 1 djenkins djenkins 415754 May  4 23:01 ./tmp/report.pdf
-rw-r--r-- 1 djenkins djenkins 206989 May  4 23:01 ./tmp/report2.pdf

------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to