Bug 347794 - landscape A3 page incorrectly scaled down to printout A4 paper size
Summary: landscape A3 page incorrectly scaled down to printout A4 paper size
Status: RESOLVED DUPLICATE of bug 383734
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 0.21.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL: http://www.euro-p.de/demo-A3-landscap...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-16 12:57 UTC by T Kleindienst
Modified: 2017-09-13 02:34 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

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