[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
Sat Feb 6 00:30:44 CET 2016


https://bugs.freedesktop.org/show_bug.cgi?id=81760

--- Comment #16 from Adrian Johnson <ajohnson at redneon.com> ---
(In reply to William Bader from comment #14)
> Thanks for the deflate patch. I was following the example in
> http://www.zlib.net/zlib_how.html but I wasn't sure if the stream needed any
> header or wrapper to be usable in a postscript filter.

It needs to be wrapped in an ASCIIHex or ASCII85 stream. You can look at the
pdftocairo -ps output to see how cairo does it.

> I noticed that the patch creates new DeflateStream files. I currently added
> my new code to the end of FlateStream, but I was considering that also
> because it allows poppler to use its own internal flate decoder and to use
> zlib only for encoding. I want to get it working first, then I'll clean it
> up.

I think it is better to keep code that depends on external libraries in a
separate file.

The deflate stream in my patch is well tested and based on similar code in
cairo that has been in use for 10 years.

> I could make a new configure flag to enable flate encoding, and then the
> encoding and decoding could be configured independently.

That capability is already in my patch.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20160205/25009841/attachment.html>


More information about the Poppler-bugs mailing list