Comment 14 for bug 1243484

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

The "landscape" option is a shortcut for the IPP standard option "orientation-requested=3" and RFC 2911 (http://tools.ietf.org/search/rfc2911) tells about the meaning of "orientation-requested=...":

----------
   This attribute indicates the desired orientation for printed print-
   stream pages; it does not describe the orientation of the client-
   supplied print-stream pages.

   For some document formats (such as 'application/postscript'), the
   desired orientation of the print-stream pages is specified within the
   document data. This information is generated by a device driver
   prior to the submission of the print job. Other document formats
   (such as 'text/plain') do not include the notion of desired
   orientation within the document data. In the latter case it is
   possible for the Printer object to bind the desired orientation to
   the document data after it has been submitted. It is expected that a
   Printer object would only support "orientations-requested" for some
   document formats (e.g., 'text/plain' or 'text/html') but not others
   (e.g., 'application/postscript'). This is no different than any
   other Job Template attribute since section 4.2, item 1, points out
   that a Printer object may support or not support any Job Template
   attribute based on the document format supplied by the client.
   However, a special mention is made here since it is very likely that
   a Printer object will support "orientation-requested" for only a
   subset of the supported document formats.
----------

Following this, pdftopdf should ignore "landscape" and "orientation-requested" and texttopdf and imagetopdf should use it for layouting the job. To server special, size-less PostScript files, the "landscape" and "orientation-requested" should also be taken by the pstopdf filter and swap width and length of the page size supplied to Ghostscript for the PS->PDF conversion. WDYT?