[poppler] pdftops creates huge file with simple color background (attached examples)

Pierre-Luc Samuel Pierre-Luc.Samuel at ticketmaster.com
Mon Feb 1 13:39:21 PST 2016


On 01/29/2016 05:29 PM, Adrian Johnson wrote:
 > "pdftocairo -ps tux-yellow.pdf" creates a 112KB file.
 > "pdftocairo -ps -level2 tux-yellow.pdf" creates a 345KB file.
 >
 > So you should be able to get significantly better compression out of 
pdftops by using the /FlateDecode filter for PS level 3 and fallback to 
/LZWDecode for level 2.

Exactly, LZWDecode would be great in pdftops; do you imply there's a way 
to do that with pdftops?  Using pdftocairo is not possible because of 
other issues with fonts...

Also, I noticed https://bugs.freedesktop.org/show_bug.cgi?id=81760 
mentions that LZW was implemented in xpdf and may be eventually merged 
back to poppler, any news on that front?

Pierre-Luc


More information about the poppler mailing list