flathub / org.kde.okular

https://flathub.org/apps/details/org.kde.okular
6 stars 12 forks source link

How to set defaults for Print to PDF? #138

Closed wj25czxj47bu6q closed 2 years ago

wj25czxj47bu6q commented 2 years ago

How can you set default options/properties for the virtual printer "Print to File (PDF)"? (For example, changing the output page size from A4 to letter)

If I'm not mistaken, "Print to File (PDF)" is a KDE feature rather than an Okular-specific feature, but I can't find any mention of configuring it in the org.kde.Platform repo either.

To be clear, I am not talking about CUPS-PDF, though CUPS-PDF would probably be a viable alternative.

travier commented 2 years ago

Is it possible to set default on regular (non-Flatpak) Okular?

wj25czxj47bu6q commented 2 years ago

Is it possible to set default on regular (non-Flatpak) Okular?

Indeed, I should have checked this before opening the issue. It seems to be an open issue with the Qt printing infrastructure, which KDE adopted since KDE 4. I saw an old screenshot that suggested it was configurable, but there is no such configuration in KDE Plasma 5.

Relevant links: https://forum.kde.org/viewtopic.php?t=170871 https://www.reddit.com/r/kde/comments/owlebm

Relevant links from old versions: https://forum.kde.org/viewtopic.php?t=124376 https://bugs.kde.org/show_bug.cgi?id=176999 https://bugreports.qt.io/browse/QTBUG-6469 https://bugreports.qt.io/browse/QTBUG-69562

Through investigating this issue, I have come to the conclusion that printing in Qt is a mess with many semi-major issues still unfixed years later (e.g. printing in A4 even when Letter is selected). I will use CUPS-PDF going forward.


Closed as unresolved, upstream issue.