[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
Fri Feb 5 17:21:15 CET 2016
https://bugs.freedesktop.org/show_bug.cgi?id=81760
--- Comment #10 from Albert Astals Cid <aacid at kde.org> ---
You need to initialize enableLZW
(In reply to William Bader from comment #8)
> Created attachment 121480 [details] [review]
> 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/20160205/e011ca49/attachment.html>
More information about the Poppler-bugs
mailing list