Bug 485380

Summary: cannot print if using option "Pages from ... to ..."
Product: [Applications] okular Reporter: Germano Massullo <germano.massullo>
Component: printingAssignee: Okular developers <okular-devel>
Status: RESOLVED DUPLICATE    
Severity: normal CC: Eli.H.Hayon, fanzhuyifan, john.kizer
Priority: NOR    
Version First Reported In: 24.02.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: cups_not_working_journal
cups_working_journal.txt

Description Germano Massullo 2024-04-11 14:55:06 UTC
Probably a Qt 6 print stack problem, but before escalating in Qt bugreport website I would like to first start here, since it's the place where I originally experienced the problem.

In Okular printing options, you can find:
Print range:
- Print all
- Pages from ... to ...
- Pages
- Current page 
- Selection

I had to print two pages of a PDF document I cannot share publicly, with double sided printing.
So I selected "Pages" option and I wrote 479-480, selected "double sided printing" "long side binding" and pressed "print" button. The printer did not start (debug CUPS infos attached in file cups_not_working_journal.txt).
If I instead use the option "Pages from 479 to 480" the printer works (debug CUPS infos attached in cups_working_journal.txt).

Okular 24.02.1
KDE Frameworks 6.0.0
Qt 6.6.2
Plasma 6.0.3
CUPS 2.4.7
Comment 1 Germano Massullo 2024-04-11 14:56:10 UTC
Created attachment 168393 [details]
cups_not_working_journal
Comment 2 Germano Massullo 2024-04-11 14:56:25 UTC
Created attachment 168394 [details]
cups_working_journal.txt
Comment 3 Eli Hayon 2025-04-27 23:31:41 UTC
I just discovered the exact same problem. I proved it by taking my desired pages to be printed, turning them into a PDF, and then printing that whole PDF without providing page numbers. This is a good work around for now. I confirmed it's not the printer by running a test page and I can print from my phone just fine.

My steps to reproduce are the same like the original report.
1. Open document to print.
2. Print menu
3. Select pages to print such as "5,6" out 10 pages for example.
4. Watch the job go the queue and it claims to complete.
5. Nothing is printed.

- Okular version 25.04.0
- KDE Plasma: 6.3.4
- KDE Framework: 6.12.0
- Qt Version: 6.9.0 

Looking in the KJournald Browser there isn't anything obvious to share. I see some stuff about printing, but no errors. Just looks like debug output.
Comment 4 John Kizer 2025-04-28 19:11:59 UTC
Hi - merging this together with another bug report for the same symptoms. Thanks!

*** This bug has been marked as a duplicate of bug 483914 ***