Bug 229261 - Print to file paper size setting reverts to A4 every time
Summary: Print to file paper size setting reverts to A4 every time
Status: RESOLVED UPSTREAM
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: print-dialog (show other bugs)
Version: 4.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KDEPrint Devel Mailinglist
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-03 16:05 UTC by Andrew Munkres
Modified: 2018-07-21 03:17 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Munkres 2010-03-03 16:05:12 UTC
Version:            (using KDE 4.4.0)
OS:                Linux
Installed from:    Archlinux Packages

(Note: I'm actually using KDE 4.4.1 now, not 4.4.0, but Bugzilla didn't present 4.4.1 as a choice. I had the same problem in 4.4.0, also.)

I've set the system setting of "Regional & Language" -> "Country/Region & Language" -> "Other" -> "Paper format" to "US Letter", my /etc/papersize file contains the text "letter", and the program "paperconf" outputs the text "letter". Despite all of this, though, when I open the "Print..." dialog in a KDE program, choose "Print to File (PDF)" or "Print to File (Postscript)", and open the "Properties" dialog, the "Page size" will be set to "A4". I can set it to "Letter", then press OK, then press Print, and it will generate the output with Letter page size; however, if I then open the "Print..." dialog again, the page size will have reverted to A4.

(I'm not sure what happens when using a real printer.)

I'm using KDE 4.4.0 and Qt 4.6.2, on Linux.

Maybe this is related to bug 207376?

http://forum.kde.org/viewtopic.php?f=17&t=86258
Comment 1 Andrew Munkres 2010-03-03 16:11:13 UTC
Oops, I meant to say: "I'm using KDE 4.4.1 and Qt 4.6.2, on Linux.
"
Comment 2 Frank Reininghaus 2010-03-03 18:00:59 UTC
Thanks for the bug report!

> Maybe this is related to bug 207376?

I think both issues are probably duplicates of bug 180051...
Comment 3 Albert Astals Cid 2010-03-03 19:58:39 UTC
Not a KDE bug.

http://bugreports.qt.nokia.com/browse/QTBUG-6471
Comment 4 Andrew Munkres 2010-03-03 21:53:16 UTC
The Qt bug report is titled "QPrintDialog for unix does not correctly read CUPS settings". However, I encounter this problem when using the pseudo-printers "Print to File (PDF)" and "Print to File (Postscript)".

Is CUPS involved at all when printing to a file? If not, then is the "QPrintDialog for unix does not correctly read CUPS settings" bug actually the cause of this?
Comment 5 John Layt 2010-03-04 16:14:43 UTC
The CUPS code is shared with the PDF/PS code as that is the file format all CUPS print jobs are rendered as, so it's all tied in together.  However there's no harm in flagging it up for their attention.  I suspect that normally the code would get the paper size from the CUPS printer definition, but perhaps gets lost when there is no printer to get it from.  I suspect it is supposed to get it from the system locale, are you sure your system locale is set to a country that uses Letter paper, e.g. US (I'm not sure if Arch has a GUI for doing this but see http://wiki.archlinux.org/index.php/Locale). Note this is different than setting the KDE locale and paper size in System Settings (that's a separate issue we need to fix).
Comment 6 Andrew Munkres 2010-03-04 21:19:57 UTC
I have LANG set to "en_US.utf8". Just now I re-ran "locale-gen", then logged out and logged back in. It still defaults to A4.
Comment 7 S. Christian Collins 2011-06-01 08:22:08 UTC
This bug still remains using Kubuntu 11.04 (KDE 4.6.3 & Qt 4.7.2) even though the upstream Qt bug linked in comment #3 was supposedly fixed in Qt 4.6.3.  What is going on here?
Comment 8 jason 2013-03-29 17:09:17 UTC
This bug is still Present in Okular 0.14.3 on Kubuntu 12.04.2 / KDE 4.8.5 / QT 4.8.1.
Comment 9 Steve Kelem 2018-07-05 20:51:08 UTC
Five years later...
This bug is still present in Okular 1.3.3 on Ubuntu 18.04.
Comment 10 Michael Weghorn 2018-07-20 17:26:28 UTC
As Albert mentioned in comment 3, this is not a bug in any of the KDE components, but the behaviour comes from the underlying Qt print dialog, so please file a bug report in the Qt issue tracker at https://bugreports.qt.io/ instead.
Comment 11 Steve Kelem 2018-07-21 03:17:13 UTC
Filed a Qt bug: https://bugreports.qt.io/browse/QTBUG-69562