[Printing-architecture] What should the "landscape" and "orientation-requested" options exactly do?

Tobias Hoffmann lprint-list at thax.hardliners.org
Fri Dec 6 23:01:48 UTC 2013

Am 05.12.2013 23:44 schrieb "Till Kamppeter" <till.kamppeter at gmail.com>:
> Hi,
> I got the following bug report on Ubuntu:
> https://bugs.launchpad.net/ubuntu/+source/poppler/+bug/1243484
> a user complais that when he sends a job with the "landscape" option it
> does not come out correctly.
> Now I want to know exactly what "landscape" and "orientation-requested"
> should do exactly, to fix cups-filters.
> There is some discussion in the bug report and following RFC 2911 I come
> to the conclusion that PDF files and also PostScript files which come
> from apps as a print job have their layout and page geometry already
> determined by the app and so a filter like pdftopdf should ignore
> "landscape" and "orientation-requested". For PostScript files (filters
> pstopdf and pstops) the given "PageSize", "landscape", and
> "orientation-requested" settings should only be used as default for
> pages without geometry definition (like the old PostScript CUPS test
> page) and be ignored by pages which already come with complete geometry
> info (like pages of a usual print job from an app). Filters for text and
> image jobs (texttopdf, imagetopdf) should use "landscape" and
> "orientation-requested" for the layout of the output.
> Am I correct?

I don't think so.
E.g. for N-up, fitplot, adding of borders the pdftopdf filter looks at the
final destination size. This size is determined by page-size, *together*
with orientation-requested. pdftopdf also makes sure that filters like
pdftoXYZ only get portrait pdfs as input, so that these can rasterize from
to bottom and get the correct raster pixel ordering without thinking about
rotations (e.g. an inkjet still prints along the short edge, regardless
whether the input is landscape or not).

Two examples with texttopdf:
1)  A4, portrait: output pdf has (roughly) 21x29 cm, pdftopdf keeps it,
pdftoijs renders (e.g.) 1000x1400 pixel output "image" for the printer.
2)  A4, landscape: output pdf has 29x21 cm, pdftopdf rotates it (in the
ppd-specified normal_landscape direction), pdftoijs renders 1000x1400

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/printing-architecture/attachments/20131207/ee8a5897/attachment.html>

More information about the Printing-architecture mailing list