<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>I looked at it a little, and I merged the LZW from xpdf 3.04 into poppler.<div><br></div><div>In LZWEncoder, I changed getBlock(buf, len) to doGetChars(len, buf), but otherwise, poppler and xpdf are still close enough that it was not complicated.</div><div><br></div><div>Was there some reason why no one merged in the code before? Are there LZW patent issues?</div><div><br></div><div>I'll send a patch tomorrow.</div><div><br></div><div><div>$ ./pdftops tux-yellow.pdf</div><div><br></div><div>$ ls -l tux-yellow.ps </div><div><br></div><div>-rw-rw-rw- 1 william william 1126366 Feb 2 22:25 tux-yellow.ps</div><div><br></div><div>$ /usr/local/bin/pdftops tux-yellow.pdf </div><div><br></div><div>$ ls -l tux-yellow.ps </div><div><br></div><div>-rw-rw-rw- 1 william william 27552291 Feb 2 22:25 tux-yellow.ps</div></div><div><br></div><div>William<br><div><br><div>> To: ajohnson@redneon.com; poppler@lists.freedesktop.org<br>> From: Pierre-Luc.Samuel@ticketmaster.com<br>> Date: Mon, 1 Feb 2016 16:39:21 -0500<br>> Subject: Re: [poppler] pdftops creates huge file with simple color background (attached examples)<br>> <br>> On 01/29/2016 05:29 PM, Adrian Johnson wrote:<br>> > "pdftocairo -ps tux-yellow.pdf" creates a 112KB file.<br>> > "pdftocairo -ps -level2 tux-yellow.pdf" creates a 345KB file.<br>> ><br>> > So you should be able to get significantly better compression out of <br>> pdftops by using the /FlateDecode filter for PS level 3 and fallback to <br>> /LZWDecode for level 2.<br>> <br>> Exactly, LZWDecode would be great in pdftops; do you imply there's a way <br>> to do that with pdftops? Using pdftocairo is not possible because of <br>> other issues with fonts...<br>> <br>> Also, I noticed https://bugs.freedesktop.org/show_bug.cgi?id=81760 <br>> mentions that LZW was implemented in xpdf and may be eventually merged <br>> back to poppler, any news on that front?<br>> <br>> Pierre-Luc<br>> _______________________________________________<br>> poppler mailing list<br>> poppler@lists.freedesktop.org<br>> http://lists.freedesktop.org/mailman/listinfo/poppler<br></div></div></div> </div></body>
</html>