Using PPD constraints with Paper Sizes

Q: When I create a UIConstraint against PageSize it only works some of the time. Why?

A: When a UIConstraint is checked by the printing system, there are two keywords that are checked, PageSize and PageRegion. If you only constrain against PageSize, then it will appear as if it is possible to get an invalid pair of constraints if you set the options in certain orders. If you constrain to both then you will always get a consistent experience. An example of correctly constraining the print tray with the paper size, is shown below.

Listing 1: Constraining the print tray and the paper size

*% Tray2 cannot hold Legal paper
*UIConstraints: *InputSlot Tray2          *PageSize Legal
*UIConstraints: *PageSize Legal           *InputSlot Tray2
*% Additionally constrain the PageRegion.
*UIConstraints: *InputSlot Tray2          *PageRegion Legal
*UIConstraints: *PageRegion Legal         *InputSlot Tray2

Document Revision History

Date Notes
2008-08-08 First Version

Posted: 2008-08-08


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.