Bug 511315 - Okular overrides papersize set in printer driver
Summary: Okular overrides papersize set in printer driver
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: printing (other bugs)
Version First Reported In: 25.08.1
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-29 12:40 UTC by Lars
Modified: 2025-10-29 12:42 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Okular Printing Preferences (83.43 KB, image/jpeg)
2025-10-29 12:41 UTC, Lars
Details
Printing Defaults (43.81 KB, image/jpeg)
2025-10-29 12:42 UTC, Lars
Details
Printing Preferences (44.26 KB, image/jpeg)
2025-10-29 12:42 UTC, Lars
Details
DEMO document (13.97 KB, application/pdf)
2025-10-29 12:42 UTC, Lars
Details

Note You need to log in before you can comment on or make changes to this bug.
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