Bug 386644

Summary: kde print dialog does not show printer specific options for remote cups printers
Product: [Frameworks and Libraries] print-manager Reporter: krienke
Component: generalAssignee: Daniel Nicoletti <dantti12>
Status: RESOLVED UPSTREAM    
Severity: major CC: gaaf, nate, pip.kde
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description krienke 2017-11-08 12:13:01 UTC
I run a linux system with openSuSE 42.3 with KDE 5.8.7, QT 5.6.2. Recently I just wanted to print a PDF document using okular to a remote cups printer. On my local machine there is also a cups server running that simply learns all printers from another, central cups server that really controls these printers. 

After selecting the printer I wanted to print to, in the printing dialogue I had two Buttons: "properties" (in my german KDE version: "Eigenschaften") and Settings ("Einstellungen"). In none of dialogues that open when pressing one of the buttons I am able to see the printer specific options like "print a watermark" that are all shown on the system when running lpoptions:

$lpoptions -p myremoteprinter -l 
....
RIOrientOvr/Orientation Override: *Off Landscape Portrait
RIWatermark/Watermark: *Off On
RIWMText/Watermark Text: *Confidential Copy Copyright Final FileCopy Proof TopSecret
RIwmFont/Watermark Font: CourierB TimesB *HelveticaB
RIwmSize/Watermark Size: 24 *36 48 60 72
RIwmAngle/Watermark Angle: 180Deg 135Deg 90Deg *45Deg 0Deg M45Deg M90Deg M135Deg M180Deg
RIwmTextStyle/Watermark Style: *Gray Outline 
..

When I start /usr/bin/configure-printer myremoteprinter I can see all the options as well that are missing in the kde printing dialogue. So it seems that my local running cups server learned all these options correctly.

printing the pdf (which is a A4 page in portrait orientation) from okular anyway, results in a print in wrong orientation. When selection "portrait" its printed in landscape orientation, when selecting "landscape" in the printing dialogue its printed smaller than the paper size (A4) but in correct orientation. So after all I am unable to print a correctly formatted page from a simple PDF document.

If I do not use okular for previewing/printing the pdf but instead evince on the very same machine then everything works as expected, all printer specific options are available/selectable and printing in orientation "protrait" results in a correctly printed/formatted page that really fills the whole a4 paper. So it seems that KDE printing has a severe problem at the moment.  i also tried printing a photo from gwenview. The problem remains the same. There are no printer specific options that can be selected in the printer dialogue (for the photo I did not test if the orientation of the resulting print is ok or not). 

I think the current situation is that printing is close to impossible using KDE tools, which should really be fixed as soon as possible.
Comment 1 Paul 2017-11-08 13:04:56 UTC
Upstream bug report:

https://bugreports.qt.io/browse/QTBUG-54464
Comment 2 Nate Graham 2017-11-08 17:32:31 UTC
Yes unfortunately this needs to be fixed upstream, since we're using the Qt print dialog. I encourage you to watch and vote for https://bugreports.qt.io/browse/QTBUG-54464. It's clear that this isn't a super high priority for the Qt folks, so I also encourage you to submit patches if you have any expertise in this area, and if not, get the word out and and encourage anyone you know who does.

Please file a new bug Against Okular | Printing to track the incorrect orientation issue you mentioned.