Pages 364 and 365 from the PDF specification
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?
Created attachment 138763 [details] [review]
Make PrintScaling preference available in glib API
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.
(In reply to Marek Kasik from comment #1)
> Created attachment 138763 [details] [review] [review]
> Make PrintScaling preference available in glib API
> 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.
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,
-- 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.