Bug 129249

Summary: landscape format pdfs are treated as portrait format
Product: [Unmaintained] kpdf Reporter: Stefan <stefan-tiger>
Component: generalAssignee: Albert Astals Cid <aacid>
Status: RESOLVED NOT A BUG    
Severity: normal CC: esigra, rossi.f
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Stefan 2006-06-16 14:29:51 UTC
Version:            (using KDE KDE 3.5.2)
Installed from:    Gentoo Packages
Compiler:          gcc x86_64-pc-linux-gnu-3.4.5 -O2
OS:                Linux

Printing/previewing an landscape format pdfs are treated as portrait format.

You can see this in the print-preview page-thumbnails or if you print 4 pdf pages on one.

If you print 4 landscape pdf pages on one, the page no 1 is, landscape-viewd, on the upper right 
(portrait-viewed upper left, this would be correct if the source pdf ist also portrait format).

In other words: if you print 4 pages on one, the position of the first pdf page on paper is always the same, no matter what the pdf pages are oriented.
Comment 1 Alastair Burt 2006-06-18 10:55:04 UTC
I can confirm this bug. Kpdf does not appear to print (or export to PostScript) in landscape mode. I printed off the following wallchart for my eldest son with KDE 3.4 or 3.3:
   http://news.bbc.co.uk/sol/shared/spl/hi/football/06/worldcup/pdf/wallchart.pdf

When my youngest son wanted a copy as well, I had updated my system to KDE 3.5 and could no longer print the document. I had to install acroread again to avoid civil war within the family.
Comment 2 Stefan 2006-06-18 12:23:56 UTC
Don't drink as much beer as we do during the Worldcup. This would better prevent trouble in your family ;)

About the Bug: With your PDF, some content is cut-off in the print preview. My landscape PDF's content are "only" distorted. On the printout it no more distored, but at the wrong place as you can read above.

Please confirm this bug by changing the status of this bug.

Greetings from Germany, near Stuttgart.
Comment 3 Albert Astals Cid 2006-06-18 15:31:50 UTC
Are you guys both using gentoo?
Comment 4 Stefan 2006-06-18 15:56:54 UTC
Yes
Comment 5 Albert Astals Cid 2006-06-18 16:10:31 UTC
Well, gentoo is wildly patching kpdf so it's their fault if the world cup pdf does not print correctly, i can print it without any problem here.
Comment 6 Fabio Rossi 2006-06-19 10:07:29 UTC
Albert, could you test also this file? 

http://www.usembassy.it/visa/VWP-timeline.pdf

In the printer properties, the settings about orientation are disabled. The print preview is cut to portrait size.

I'm also using Gentoo, it's only to verify if it's our distribution problem.
Comment 7 Albert Astals Cid 2006-06-19 23:35:01 UTC
Of course, here you have the print preview i get, as you can see it's completely correct http://www.tsdgeos.com/landscape.png
Comment 8 Stefan 2006-06-20 08:13:35 UTC
@Albert: no it is incorrect. Look at the page-preview-thumbnails on the left hand on your screenshot. There are both pages in portrait format.
Comment 9 Albert Astals Cid 2006-06-20 08:55:00 UTC
This is just a bug on the previewer (kghostview) that does not know how to create non portrait thumbnails. Do a preview of that pdf using gentoo's kpdf and you'll see how you get the page gets cuted  as i get when using kubuntu (that also patches wildly kpdf) at http://www.tsdgeos.com/landscapeKubuntu.png
Comment 10 Fabio Rossi 2006-06-20 10:15:26 UTC
@Albert: which version are you using? I have just recompiled kpdf 0.5.2 (kde 3.5.2) removing the only patch (for poppler) inserted by Gentoo developers 
(http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/distfiles/kpdf-3.5.2-poppler.patch.bz2). 
Now the page orientation is landscape but the page is rendered as for a portrait orientation (it's missing a part on the right).

Which are the other kde components related to print preview?
Comment 11 Stefan 2006-06-20 15:07:16 UTC
If you dont't care about the page-preview-thumbnails on the left hand on your screenshot, try this:

Print a landscape pdf with your printer and select to print 4 pages on one. Then you will see, that the positioning is wrong. I discribed this before, see above.
I think this is caused because of the landscape format is not correctly passed thorugh the instance who actually does the 4-on-1-page function.
Comment 12 Ferdinand Gassauer 2007-03-07 12:17:04 UTC
same here with SuSE 10.2 packages and newest KDE 3.5.x SVN self compiled.

BTW acroread prints correctly.
Comment 13 Anders Lund 2007-03-12 18:01:54 UTC
Don't you have any interrest in solving this ?!
Still present in KDE 3.5.6.
Comment 14 Albert Astals Cid 2007-03-12 19:13:51 UTC
Well, the fact everybody is using wrongly patched kpdf versions in gentoo and ubuntu that make printing suck makes me somewhat ignore printing bugs from people using those distributions because 99.999% are not reproducible on a real kpdf and make me loose the few time i have to work on kpdf.

So if you have compile kpdf from source and have problems with landscape pdf open a different bug and attach the document you have problems there.

I am closing this bug for now as invalid.