Bug 368486 - Frameworks: Okular always uses the default printing size of the printer
Summary: Frameworks: Okular always uses the default printing size of the printer
Status: RESOLVED WORKSFORME
Alias: None
Product: okular
Classification: Applications
Component: printing (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2016-09-09 10:17 UTC by Björn Bidar (Thaodan)
Modified: 2018-10-27 02:30 UTC (History)
2 users (show)

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


Attachments
ppd of my printer (119.79 KB, application/vnd.cups-ppd)
2016-11-08 15:18 UTC, Björn Bidar (Thaodan)
Details
signature.asc (454 bytes, application/pgp-signature)
2016-11-08 17:24 UTC, Björn Bidar
Details
cups print log (14.49 KB, text/plain)
2016-12-06 08:35 UTC, Björn Bidar (Thaodan)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Björn Bidar (Thaodan) 2016-09-09 10:17:29 UTC
When trying to print for example a pdf in A4 where as the default paper format of the printer is A3 it is printed as A3 instead of A4.

Reproducible: Always

Steps to Reproduce:
1. Make shure that both formats that you test and your default printing formats are different
2. select another format than the default paper format
3. print

Actual Results:  
The result printing format is not the format that was set.
Comment 1 Björn Bidar (Thaodan) 2016-09-12 09:43:04 UTC
I tested another Qt app (qpdfview) and it has the same issue. So maybe the issue lies within Qt.
Comment 2 Björn Bidar (Thaodan) 2016-09-18 02:01:38 UTC
So is this bug in Qt or okular?
Comment 3 Albert Astals Cid 2016-10-29 13:09:41 UTC
Can you run it from the shell and see what the debug output says?

I just printed a Executive sized page as A5 in a printer that defaults to Letter and it worked, the output i get from the debug says

Executing "lpr" with arguments ( ...  "-o", "media=A5" ... )

so the right media is passed to the printer.
Comment 4 Björn Bidar (Thaodan) 2016-11-08 15:12:46 UTC
debug output:
"/usr/lib/qt/plugins/okular/generators/okularGenerator_poppler.so"
org.kde.okular.core: Output DPI: QSizeF(278.674, 288.758)
org.kde.okular.core: request observer=0x2408d40 2066x3029@0
org.kde.okular.core: sending request observer=0x2408d40 2066x3029@0 async == true isTile == false
org.kde.okular.core: request observer=0x2408d40 2066x3029@0
org.kde.okular.core: request observer=0x2408d40 2046x3000@0
org.kde.okular.core: sending request observer=0x2408d40 2046x3000@0 async == true isTile == false
org.kde.okular.core: request observer=0x2408d40 2046x3000@0
org.kde.okular.core: request observer=0x2352040 310x455@0
org.kde.okular.core: sending request observer=0x2352040 310x455@0 async == true isTile == false
org.kde.okular.core: Executing "lpr" with arguments ("-P", "Canon_iR-ADV_C5030-5035_(UFR_II)", "-#1", "-J", "anschreiben", "-o", "media=A4", "-o", "portrait", "-o", "sides=one-sided", "-o", "outputorder=normal", "-o", "Collate=True", "-o", "page-left=11.3386", "-o", "page-top=11.3386", "-o", "page-right=11.3386", "-o", "page-bottom=11.3386", "-o", "fit-to-page", "-o", "number-up=1", "-o", "number-up-layout=lrtb", "-o", "job-billing", "-o", "job-priority=50", "-o", "job-sheets=none,none", "-r", "/tmp/okular_x12086.ps")
checking if page 0 has text: true
Comment 5 Björn Bidar (Thaodan) 2016-11-08 15:18:50 UTC
Created attachment 102123 [details]
ppd of my printer
Comment 6 Albert Astals Cid 2016-11-08 17:05:01 UTC
So were you trying to print in A4 or in some other paper size? because i see A4 there.
Comment 7 Björn Bidar 2016-11-08 17:24:24 UTC
Created attachment 102126 [details]
signature.asc

I tried to print in a3 but it switched to a4.
Comment 8 Albert Astals Cid 2016-11-08 18:23:35 UTC
Confused, are you Thaodan with a different account or different person?
Comment 9 Björn Bidar (Thaodan) 2016-11-08 18:32:23 UTC
ah yes sorry I'm thaodan
Comment 10 Björn Bidar (Thaodan) 2016-12-06 08:34:57 UTC
still got the issue, tried latest git.
log is attached.
It seems that the document size is used instead of the size i forced.
Comment 11 Björn Bidar (Thaodan) 2016-12-06 08:35:57 UTC
Created attachment 102642 [details]
cups print log
Comment 12 Andrew Crouthamel 2018-09-26 22:22:19 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 13 Andrew Crouthamel 2018-10-27 02:30:49 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!