Bug 92779 - printing entries from the Viewer Preferences dictionary
Summary: printing entries from the Viewer Preferences dictionary
Status: RESOLVED MOVED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-02 17:54 UTC by Pablo Rodríguez
Modified: 2018-08-21 10:37 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Make PrintScaling preference available in glib API (5.58 KB, patch)
2018-04-11 16:38 UTC, Marek Kasik
Details | Splinter Review

Description Pablo Rodríguez 2015-11-02 17:54:51 UTC
Pages 364 and 365 from the PDF specification
(https://wwwimages2.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/PDF32000_2008.pdf#page=364)
contain some entries in the viewer dictonary that set up printing
options from the PDF file itself.

The main entries and their values are:

/PrintScaling          /AppDefault or /None.

/Duplex                /Simplex (required when printer’s default is double-sided
                       /DuplexFlipShortEdge (double-sided for landscape)
                       /DuplexFlipLongEdge (double-sided for portrait)

/PickTrayByPDFSize     boolean (evince implements it as "Select page size using document page size)

/NumCopies             integer (the specification points the number allowed in the printing dialog, but Adobe allows up to 5).

evince enables all these features in the printing dialog. But it cannot read them from the PDF file.

Could you implement them in poppler?
Comment 1 Marek Kasik 2018-04-11 16:38:15 UTC
Created attachment 138763 [details] [review]
Make PrintScaling preference available in glib API

Hi,

this patch makes the PrintScaling preference available in glib frontend. I have also an evince patch using this if you would like to test it.
Comment 2 Pablo Rodríguez 2018-04-17 15:36:24 UTC
(In reply to Marek Kasik from comment #1)
> Created attachment 138763 [details] [review] [review]
> Make PrintScaling preference available in glib API
> 
> Hi,
> 
> this patch makes the PrintScaling preference available in glib frontend. I
> have also an evince patch using this if you would like to test it.

Hi Marek,

many thanks for your patch.

I’d love to test it in evince, but I’m afraid I don’t own a printer anymore.

Many thanks again for your code,

Pablo
Comment 3 GitLab Migration User 2018-08-21 10:37:02 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/290.


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.