[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
Wed Feb 3 06:33:55 CET 2016
https://bugs.freedesktop.org/show_bug.cgi?id=81760
William Bader <williambader at hotmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |williambader at hotmail.com
--- Comment #8 from William Bader <williambader at hotmail.com> ---
Created attachment 121480
--> https://bugs.freedesktop.org/attachment.cgi?id=121480&action=edit
Patch to add LZW compression based on xpdf-3.04
This patch adds support for LZW compression using the code from xpdf-3.04.
xpdf had a psLZW flag in GlobalParams. I changed it to enableLZW in PSOutput.
In Stream.cc, xpdf used getBlock(buf, len) in LZWEncoder. I updated it to
doGetChars(len, buf).
$ ls -l tux-yellow.pdf
-rw-r--r-- 1 william william 65720 Feb 2 19:58 tux-yellow.pdf
$ ./pdftops tux-yellow.pdf tux-with-lzw.ps
$ ./pdftops -nolzw tux-yellow.pdf tux-with-rle.ps
$ ls -l tux-with-lzw.ps tux-with-rle.ps
-rw-rw-rw- 1 william william 1126352 Feb 3 06:31 tux-with-lzw.ps
-rw-rw-rw- 1 william william 27576756 Feb 3 06:31 tux-with-rle.ps
I also added a few other small changes from xpdf-3.04.
--
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/20160203/e5347892/attachment.html>
More information about the Poppler-bugs
mailing list