[IPP] Specifying landscape orientation for PWG-Raster

[IPP] Specifying landscape orientation for PWG-Raster

Michael Ziller mziller at microsoft.com
Mon Jun 16 16:49:52 UTC 2025


PPD files have a *LandscapeOrientation={Plus90, Minus90} field to describe printer configuration for how clients should send raster data for documents in landscape orientation. This seems important information for IPP printing as well given that some printers can only staple on one side of the page (e.g. finishings-supported=20 (StapleTopLeft), 22 (StapleTopRight) but not 21, 23 for StapleBottomLeft, StapleBottomRight) given how the stapling finisher works.

For PWG-Raster data the client is expected to send here it seems important to know whether it should rotate a Landscape document 90 degrees CCW (landscape) or 270 degrees (reverse-landscape), rather than trying to infer that information from the finishings 1Set. Here this example printer PPD likely has LandscapeOrientation=Minus90 or equivalently reverse-landscape, since for a client to get a staple in the top left for the page held in Landscape orientation, it can only send StapleTopRight here since that's all the printer supports, and therefore a 90 degree CW raster data rotation is needed rather than a 90 CCW one.

Would it make sense to add an attribute such as landscape-orientation-desired (or some better name) where the printer would specify either 4 (landscape) or 5 (reverse-landscape) to carry this PPD information?

An alternate thought would be to duplicate entries in the media-col-database media-source-properties collection for a given (media-size, media-source) combination to indicate what direction to rotate for Landscape document raster data, e.g. entries for both:
                {A4, tray-1, short-edge-first, 3 (portrait)}                                              // How the client should send Portrait document data for A4 in tray-1
      And {A4, tray-1, short-edge-first, 5 (reverse-landscape)}                      // How the client should send Landscape document data for A4 in tray-1

But this seems like it may have issues, given that media-col-database entries currently specify things for documents in standard orientation (Portrait), for example pre-printed letterhead along the top short edge.

What are the working group thoughts here on specifying this information in the printer to allow clients to send the correct raster data for Landscape documents, potentially with finishing options applied?

Thanks,
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pwg.org/pipermail/ipp/attachments/20250616/be19699f/attachment.html>


More information about the ipp mailing list