Bug 34001

Summary: patch to add a pdftops -r # option to set the splash dpi resolution
Product: poppler Reporter: William Bader <williambader>
Component: splash backendAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: williambader
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: patch to add a pdftops -r # option to set the splash dpi resolution
Updated -r patch

Description William Bader 2011-02-07 12:37:38 UTC
Created attachment 43041 [details] [review]
patch to add a pdftops -r # option to set the splash dpi resolution

When pdftops -level1 or -level1sep finds a transparency or a color image mask, it uses splash to rasterize the image.  PSOutputDev.cc currently uses a hard-coded value of 300 dpi.  This patch allows you to set a different value on the command line.  The hard-coded value of 300 dpi is a good compromise between resolution and file size, but I am printing on a high-resolution device that supports over 1000 dpi, and rasterizing at 300 dpi degrades some details in my images.  Conversely, someone worried about file size might want to select a lower resolution.
Comment 1 Albert Astals Cid 2011-02-07 13:52:39 UTC
The description is wrong, it's not just for level1 files, there are other ocassions in which rasterization might trigger (as you can see in PreScanOutputDev). Can you fix that?
Comment 2 William Bader 2011-02-07 15:06:05 UTC
Created attachment 43053 [details] [review]
Updated -r patch

Updated patch with more accurate information in the pdftops help message for -r and in the pdftops man page.
Comment 3 Albert Astals Cid 2011-02-08 12:25:54 UTC
Will be part of poppler 0.18
Comment 4 William Bader 2011-02-08 13:09:11 UTC
Thanks!

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.