Bug 691220

Summary: ps2pdf makes a file 3X larger
Product: Ghostscript Reporter: William Bader <williambader>
Component: PDF WriterAssignee: Ken Sharp <ken.sharp>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P4    
Version: 8.71   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---
Attachments: the original pdf
300 KB pdf produced by pdfsizeopt http://code.google.com/p/pdfsizeopt/

Description William Bader 2010-03-26 16:08:34 UTC
ps2pdf usually makes files smaller, but the attached example is 832,319 bytes, and ps2pdf produces a 2,510,111 byte result. The resulting file also has some loss of image quality. The example is from http://code.google.com/p/pdfsizeopt/ That application produces a 317,328 pdf with no loss of quality (confirmed by running pdfimages from xpdf and comparing the 183 extracted images).
Comment 1 William Bader 2010-03-26 16:09:27 UTC
Created attachment 6132 [details]
the original pdf
Comment 2 William Bader 2010-03-26 16:11:22 UTC
Created attachment 6133 [details]
300 KB pdf produced by pdfsizeopt http://code.google.com/p/pdfsizeopt/
Comment 3 Ken Sharp 2010-08-13 10:44:05 UTC
The original PDF file makes quite extensive use of Form XObjects. pdfwrite currently doesn't support output of Form XObjects (except for certain classes of transparency) so each time a Form is encountered its content atream is written to the output file.

This is essentially a duplicate of #691202

*** This bug has been marked as a duplicate of bug 691202 ***