Bug 511315

Summary: Okular overrides papersize set in printer driver
Product: [Applications] okular Reporter: Lars <l1512191>
Component: printingAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 25.08.1   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Okular Printing Preferences
Printing Defaults
Printing Preferences
DEMO document

Description Lars 2025-10-29 12:40:50 UTC
SUMMARY
Okular overrides the printer's default settings and user preferences from Windows, and forces the output to become 108 x 297mm in landscape orientation, on the Zebra GK420t printer.

But our labels are 3x2 inches (76,2 x 50,8mm) in portrait orientation, and this is what is set both in "Printing Defaults" and "Printing Preferences" on the printer in Windows.

The result is a blank page.


STEPS TO REPRODUCE
1. Install the driver "ZDesigner GK420t"
2. Connect the printer, Zebra GK420t
3. Load the printer with labels that are 3x2 inch in size
4. Open printer properties -> Advanced -> Printing Defaults
5. Set width to 3 inches
6. Set height to 2 inches
7. Set orientation to Portrait
8. Click OK
9. Go to General -> Preferences
10. Repeat steps 5 to 8
11. Click OK once more
12. Open Demo.pdf
13. Print the document to the Zebra GK420t printer

OBSERVED RESULT
Blank page/label

EXPECTED RESULT
Text printed on page/label

SOFTWARE/OS VERSIONS
Windows 11 - 25H2


ADDITIONAL INFORMATION
1. Works fine with Acrobat Reader
2. Default printer is set to "Microsoft Print to PDF"
3. Have tried to set GK420t as defualt printer, with no luck, but the papersize in Okular changed to 0.75 x 0.25inch (19,0 x 6,3mm)
Comment 1 Lars 2025-10-29 12:41:44 UTC
Created attachment 186286 [details]
Okular Printing Preferences
Comment 2 Lars 2025-10-29 12:42:15 UTC
Created attachment 186287 [details]
Printing Defaults
Comment 3 Lars 2025-10-29 12:42:34 UTC
Created attachment 186288 [details]
Printing Preferences
Comment 4 Lars 2025-10-29 12:42:55 UTC
Created attachment 186289 [details]
DEMO document