Bug 691220 - ps2pdf makes a file 3X larger
Summary: ps2pdf makes a file 3X larger
Status: RESOLVED DUPLICATE of bug 691202
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Writer (show other bugs)
Version: 8.71
Hardware: PC Linux
: P4 normal
Assignee: Ken Sharp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-26 16:08 UTC by William Bader
Modified: 2010-08-13 10:44 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
the original pdf (812.81 KB, application/pdf)
2010-03-26 16:09 UTC, William Bader
Details
300 KB pdf produced by pdfsizeopt http://code.google.com/p/pdfsizeopt/ (309.89 KB, application/pdf)
2010-03-26 16:11 UTC, William Bader
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***