Bug 402779 - Okular, when printing 2 pages per sheet, prints the wrong pages.
Summary: Okular, when printing 2 pages per sheet, prints the wrong pages.
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: printing (other bugs)
Version First Reported In: 1.3.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-02 07:07 UTC by Andy Goss
Modified: 2025-05-26 06:57 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Goss 2019-01-02 07:07:36 UTC
SUMMARY
If I try and print two pages from a PDF (a Canon camera manual in this instance), two per A4 sheet, I get four pages, the wrong ones, two per sheet.
The result is the same for larger numbers of pages.
Specifying Print to File causes the pages per sheet option to be greyed out. Also ignores the page number selection and copies the whole file over, but bigger, with each page placed as what looks like A5 in the middle of an A4 page.

STEPS TO REPRODUCE
1. Open a PDF file with okular.

2. Open the print dialog.

3. Open Printer Properties

4. Set Pages per Sheet to 2. OK.

5. Open Options.

6. Select specific pages. (I did not try the Pages From as I needed specific single pages from the file)

7. Print.

OBSERVED RESULT
Four pages are printed, two per sheet. The second of each pair is a page twice the specified page number, the first is the page before.
For instance, if I specify pages 65 and 73, I get pages 129, 130, 145, 146.

EXPECTED RESULT
One sheet containing two pages.

SOFTWARE/OS VERSIONS
Windows: 
MacOS: 
Linux/KDE Plasma: Open SUSE Leap 15
KDE Plasma Version:  plasmashell 5.12.6
KDE Frameworks Version: 5.45.0
Qt Version: 5.9.4

ADDITIONAL INFORMATION

Leap 15 upgraded from 42.3
Comment 1 Nate Graham 2019-01-15 16:39:19 UTC
Albert/other Okular devs, was this a Qt issue? I forget.
Comment 2 Albert Astals Cid 2019-04-14 17:58:01 UTC
yes, this is a bug in Qt. Please report it to https://bugreports.qt.io/ and tell us the bug number so we can keep track.
Comment 3 Andy Goss 2019-04-15 06:22:51 UTC
Raised QTBUG-75152.
Comment 4 cipricus 2025-05-26 06:57:52 UTC
I only see this behavior when I select landscape instead of portrait. (In other applications, when selecting two pages per sheet, there is no need for selecting landscape. The need for selecting landscape here  is the result of a misleading image in the preview, where the 2 pages are not seen as expected parallel pages on the same sheet, but as two texts, one on top of the other. Selecting landscape doesn't fix the problem because the same two text appear one on top of the other, inner landscape form anyway, but the user is tempted to make some changes to fix the initial problem in preview. So it might end up with landscape setting which instead leads to this odd occurrence.)

If two pages per sheet are selected with the default ”Portrait” setting, the printing is okay, although the image preview before printing is confusing.