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?
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.
(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
-- 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.