Version: (using KDE 4.1.2)
Installed from: Ubuntu Packages
When trying to print any PDF file from Okular, it defaults to A4 paper, which my printer won't print, even though I have it set to 'US Letter' in the systems settings. Other applications seem to print fine (IE: Open Office). I can go into the printer properties and change it to Letter, and it prints fine for that job, but the next print will default back to A4.
The print dialog is provided by Qt, so KDE has almost no control over it.
OK, but the print dialog works fine, and in other apps, it works as expected, but Okular is telling the print system to use A4 paper, ignoring what I have set as default.
I've seen this too, hadn't been bothered enough to report it. :)
(In reply to comment #3)
> I've seen this too, hadn't been bothered enough to report it. :)
Yeah, unfortunately for me, my printer is wireless, and is a ways away, so if I forget to make the change, it can be a pain to go to the printer, then cancel the job, and re print.
The problem is general for any KDE 4 application (and NOT only for Okular), as the printing dialog is provided by Qt; thus, this kind of KDE setting will not affect it at all.
firstname.lastname@example.org is for you.
(In reply to comment #5)
> The problem is general for any KDE 4 application (and NOT only for Okular), as
> the printing dialog is provided by Qt; thus, this kind of KDE setting will not
> affect it at all.
> email@example.com is for you.
Can you give me an example of another application in KDE that would exhibit the same behavior then? I have tried Kate, OO, Konqueror, and none of them have had this problem, only Okular...
More than probably not related to that, but probably we should add
dummy.setPageSize( printer.pageSize() );
Does kate from kde4 rember your settings? It does not here, are you sure you are not using kate from kde3?
I don't have kde 3.5.x installed (although I'm sure there are componenets involved...) if I do an 'about KDE' from kate, it shows 4.1.3.
I can confirm that Okular (version 0.7.3) erroneously defaults to A4 paper size and shows a blank pane for Advanced printer options -- whereas KWrite (version 4.1.3 "release 4.9") shows the correct paper size (e.g., Letter) and all the Advanced printer options. Other programs that behave correctly are Konqueror (version 4.1.3 "release 4.9") and Gwenview (version 2.1.3).
I can also confirm that Okular exhibits CORRECT behavior when printing PostScript and JPG files. Okular appears to only behave incorrectly when attempting to print PDF files.
This bug may be the same as Bug #176999 and Bug #177360
let the finger pointing begin...again...
This appears to be a duplicate of #177360, but needs confirmation. Can you confirm that selecting Print / Properties / Advanced gives you a blank advanced settings page? If so it is the same bug.
I'm closing based on assumption it is a duplicate and the original has now been resolved. Upgrade to KDE 4.1.4 or 4.2 RC1, or Qt 4.5.0 when it comes out in March.
*** This bug has been marked as a duplicate of bug 177360 ***
This bug has not been fixed. See bug 184188
This is not solved yet in Qt, so sorry John, but have to reopen it (or mark it as UPSTREAM? tell me.)
*** Bug 184188 has been marked as a duplicate of this bug. ***
*** Bug 189546 has been marked as a duplicate of this bug. ***
I believe that bug 185296 is a duplicate of this. I can't believe how long this bug has been around. Doesn't anyone else from North America use KDE?
The QT print dialog will print Letter for me if I actually select letter within the dialog. If the CUPS settings are for Letter then the print dialog will show Letter however it will still print A4. If I select something else in the dialog (A4) and then change it back to letter it will then print Letter.
To me it appears as though QT is reading the CUPS settings and will display them but that that it isn't in the correct state to use the settings unless they've explicitly been configured through actions in the dialog. Almost as though it doesn't get fully initialized with system settings.
This likely is a QT bug but perhaps there could be a KDE workaround by having KDE somehow programatically toggle the settings in the dialog each time it opens as if a user had done it. Perhaps this could also be done somehow when printing without the dialog which always prints A4 since I can't change it.
I understand this might be an upstream bug with QT, but if you can put a little pressure on them to fix it, it would be appreciated. http://bugreports.qt.nokia.com/browse/QTBUG-6302 and to reproduce (with sample application): http://bugreports.qt.nokia.com/browse/QTBUG-6471
(In reply to comment #20)
> I understand this might be an upstream bug with QT, but if you can put a
> little pressure on them to fix it, it would be appreciated.
> http://bugreports.qt.nokia.com/browse/QTBUG-6302 and to reproduce (with
> sample application): http://bugreports.qt.nokia.com/browse/QTBUG-6471
Anyone have updated links?
(In reply to comment #21)
> Anyone have updated links?
Looking at the patch posted in that bug report, I notice that it will only take effect if neither QT_NO_CUPS nor QT_NO_LIBRARY is defined in the Qt build. In the Fedora 19 Qt SRPM (qt-4.8.4-19.fc19.src.rpm), QT_NO_LIBRARY appears to be defined in qmake/qmake.pri.
Ian, please report this issue directly to Qt developers via https://bugreports.qt-project.org/
I think this should have been fixed in the meanwhile and could not reproduce the issue.
Can others confirm this or does anybody still have the problem with current versions of Qt 5?
It's not fixed.
Kmail 5.7.1 exhibits this behavior.
Both Okular (1.2.1) and Kmail always are set to print A4 no matter what I did in the past. Duplex mode is also forgotten from one print to the next.
This seems very broken since I set these options in the system and *all* non-KDE applications respect my settings automatically.
(In reply to Garry Williams from comment #25)
> It's not fixed.
> Kmail 5.7.1 exhibits this behavior.
> Both Okular (1.2.1) and Kmail always are set to print A4 no matter what I
> did in the past. Duplex mode is also forgotten from one print to the next.
> This seems very broken since I set these options in the system and *all*
> non-KDE applications respect my settings automatically.
Thanks for the reply and sorry if my previous comment caused confusion.
The actual cause why the wrong paper size is selected by default (and not the default paper size configured by the user) is a problem of the underlying Qt library used by KDE applications, not of KDE or the applications (like KMail or Okular) themselves.
The problem has been fixed for the current development version of Qt, s. this change: https://codereview.qt-project.org/#/c/213677/
Users will profit from this once their distribution ships the (upcoming) Qt version 5.11 or their Linux distribution backports the corresponding change to the Qt version they provide.
As far as the preselected value for duplex is concerned, there is a separate bug report for this, bug 333844. While this is currently filed against Okular, it is also an issue in Qt and I am very confident that this is going to be fixed in Qt very soon as well.
Since the issue is not in KDE itself (and has already been fixed upstream), I am closing this bug report.
Please let me know in case there are any further questions.