Bug 347794

Summary: landscape A3 page incorrectly scaled down to printout A4 paper size
Product: [Applications] okular Reporter: T Kleindienst <t.kleindienst>
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: RESOLVED DUPLICATE    
Severity: normal CC: lueck, m.weghorn, nate, TheodorStormgrade
Priority: NOR    
Version: 0.21.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
URL: http://www.euro-p.de/demo-A3-landscape.pdf
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description T Kleindienst 2015-05-16 12:57:06 UTC
A DIN A3 landscape page is incorrectly scaled down when printing on A4 paper size.

It seems Okular is falsely taking the pageheight for the pagewidth and thus the printout gets scaled down wrongly. The result printout uses only 3/4 of the A4 page.



Reproducible: Always

Steps to Reproduce:
1. open demo pdf file
2. do printout, choose A4 paper size
3. result is smaller than A4 paper size
Comment 1 Burkhard Lück 2015-05-17 09:02:55 UTC
With Okular 0.20.2 in Kubuntu 14.04 with gs 9.10 + cups 1.7.2 I can print A2 or A3 to an A4 printer and get properly scaled down print results in format A4

With Okular 0.20.2 in Kubuntu 14.14 with gs 9.14 + cups 1.7.3:
* Print A3 pdf to A4 printer -> result is an A5 printout format
  obviously scaled down twice once with 71 % (A3 to A4) and once again with 71% (A4 to A5)
* Print A2 pdf to A4 printer -> result is an A6 printout format
  obviously scaled down twice once with 50 % (A2 to A4) and once again with 50 % (A4 to A6)

* Removing the argument "fit-to-page" from the lpr call in core/fileprinter.cpp FilePrinter::optionPageMargins in okular 0.21.3 build from sources in Kubuntu 14.10 with gs 9.14 + cups 1.7.3 I can print again A2 or A3 properly scaled down to an A4 printer

I did not find any relevant changes for this issue in okular/generators/dvi(?) or gs, so I have no clue about the reason for this change in the printing behavior of Okular.
Comment 2 Björn Bidar 2016-05-11 10:36:26 UTC
still an issue, makes printing with okular not really well.
Comment 3 Burkhard Lück 2016-05-11 11:31:04 UTC
Qt: 4.8.7
KDE: 4.14.16
Okular: 0.24.2
Ubuntu 16.04 LTS

this works for me again, printing A3 to A4 printer scales properly down
Comment 4 Björn Bidar 2016-05-11 12:03:52 UTC
I think I have read something wrong, A3 printing works wrong it always prints as a4.
Comment 5 Burkhard Lück 2016-05-13 10:37:32 UTC
(In reply to Björn Bidar from comment #4)
> I think I have read something wrong, A3 printing works wrong it always
> prints as a4.

A3 printing works (landscape or portrait) for me in all combinations, printing to an A4 printer, printing to an A3 printer with A3 output and A4 output depending on my selection in the print dialog
Comment 6 Björn Bidar 2016-05-13 11:09:10 UTC
Hm this is weird, i was using the kf5 version.
Maybe there's a bug.
Comment 7 Nate Graham 2017-09-13 02:34:20 UTC

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