Save Print settings?

Asked by Tero Gusto on 2020-07-01

It seems like default printer setting for Page size (Ctrl+P > Properties) is "US Letter", as well as Margins at top+bottom 12,70mm, left+right 6,35mm. I prefer Page size "A4", as well as no Margins.

I can't see Page size nor a way to define Margins in ~/.config/qpdfview/qpdfview.conf

[printDialog]
collateCopies=false
colorMode=0
duplex=0
fitToPage=false
orientation=0
pageOrder=0

Is it possible to somehow save settings for Page size and Margins? Thanks!

Ubuntu 18.04
qpdfview 0.4.14

Question information

Language:
English Edit question
Status:
Solved
For:
qpdfview Edit question
Assignee:
No assignee Edit question
Solved by:
Tero Gusto
Solved:
2020-07-16
Last query:
2020-07-16
Last reply:
2020-07-16
Launchpad Janitor (janitor) said : #1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Tero Gusto (tero-gusto) said : #2

So, Launchpad Janitor wants to close this issue, sadly ...

Adam Reichold (adamreichold) said : #3

Hello Tero,

sorry but I did not find time to look into this. From a first glance, the issue is that the settings you mentioned are managed by CUPS and not expose via Qt's QPrinter and QPrintDialog API, hence qpdfview does not attempt to modify or store them. We do a wholesale copy of all CUPS options to then modify some of them so they should be applied when you modify them via the dialog itself. I am not sure if much more is possible as anything else would rely on serializing arbitrary CUPS settings which I have not had the time to look into...

Best regards,
Adam

Tero Gusto (tero-gusto) said : #4

Thanks Adam! Your mention of CUPS got me on the right track, and I found this page:
https://askubuntu.com/questions/296594/change-default-printing-settings

I never realized that the printer driver/CUPS is kind of a server, but updating the settings via http://localhost:631 did seem to change "Page size" from "US Letter" to "A4" in qpdfview. Now, I haven't restarted yet, so it remains to be seen if the update sticks, but let's see ... I will post a follow up after restart. I can't seem to define the margins, but will try to dig some more.

Anyways, thank you so much for making and maintaining qpdfview.

Cheers,
Tero

Tero Gusto (tero-gusto) said : #5

After restarting, "US Letter" has permanently changed to "A4" in qpdfview, thanks!