[Poppler-bugs] [Bug 81760] pdftops sometimes creates huge PS 3 files out of small PDFs
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Feb 21 05:59:07 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=81760
--- Comment #29 from William Bader <williambader at hotmail.com> ---
Created attachment 121864
--> https://bugs.freedesktop.org/attachment.cgi?id=121864&action=edit
patch 3 of 3, add support for Flate compression
Add support for Flate compression in Level 3 PostScript output.
The changes to the build variables are from Adrian Johnson's DeflateStream
patches at https://bugs.freedesktop.org/attachment.cgi?id=89776
I changed the enum in the earlier series of patches to "static const int" to
match the poppler coding style.
I also cleaned up the way that several functions in PSOutputDev.cc set the
variables to decide which filter to use. Instead of a series of if's that each
set all of the variables but one to false (based on the way that the lzw
encoder was added in xpdf-3.04), I now initialize the variables all to false
and set only one variable to true in each if. This should be clearer and should
be easier to generalize if other filters are added.
PSOutputDev::getEnableFlate() now returns false if zlib is not enabled. This
reduces the need for #if's in PSOutputDev.cc, and it also fixes an output
problem in my previous patches when building with zlib disabled.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20160221/75ca50bc/attachment.html>
More information about the Poppler-bugs
mailing list