Bug 34001 - patch to add a pdftops -r # option to set the splash dpi resolution
Summary: patch to add a pdftops -r # option to set the splash dpi resolution
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: splash backend (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-07 12:37 UTC by William Bader
Modified: 2011-02-08 13:09 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
patch to add a pdftops -r # option to set the splash dpi resolution (6.27 KB, patch)
2011-02-07 12:37 UTC, William Bader
Details | Splinter Review
Updated -r patch (6.21 KB, patch)
2011-02-07 15:06 UTC, William Bader
Details | Splinter Review

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.