[cups.bugs] [HIGH] STR #3005: Tagged pdf print incorrectlylandscape on portrait paper

Helge Blischke h.blischke at srz.de
Fri Nov 14 06:42:02 PST 2008


Joachim Schwender wrote:
> DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
> 
> [STR New]
> 
> When i send this file by 
> lpr -P<printername> scan7232.pdf
> It prints landscape rotated to A4 portrait, and therefore is cut off.
> This does not happen with cups 1.2.7 (debian etch) only after installing
> version 1.3.8. pstops does not give any error in the log. I printed on a
> Xerox WC 7232 machine. Same result can be seen when i open this file with
> Kghostview or when i print the file directly with kprinter (KDE). That
> could lead to the assumption that the file has a bug, but i can't see any
> bug in the file (ok, i am not a pdf/ps expert...) You may be able to check
> if this is an error in cups or in the file? At least it is clearly related
> to the change to 1.3.8. This is why i think it is a bug in cups.
> 
> Link: http://www.cups.org/str.php?L3005
> Version: 1.3.8


The scanned image has a width of 2340, and a height of 1654,
that is, it has been scanned in landscape orientation.
The transformation matrix to render the image transforms
the image to A4 landscape (842.40 0 0 595.44 0.00 0.00 cm),
and the media box is A4 landscape as well (/MediaBox [ 0.00 0.00 842.40 595.44 ]),
and by the rotation specification (/Rotate 270) turns this landscape page
into a portrait view.

I suspect this issue is due to uncertaincies in interpreting the /Rotate key
in PDF files. As I understand the spec, it specifies how the fully rendered page
is to be presented to the viewer, but when converting to PostScript the converters
tend to rotate (and possibly scale) the locigal page with respect to the physical
sheet, which is, in my opinion, wrong.

Sorry, I have no solution (except perhaps using a different orientation
when scanning).

Helge

-- 
Helge Blischke
Softwareentwicklung

H.Blischke at acm.org




More information about the cups-devel mailing list