摘要 |
A method for performing accurate and reliable page size selection in a PostScript(TM) device. A PolicyReport procedure is downloaded into the device to perform the following steps. If the device is using a non-standard PaperSize Policy, then the procedure uses the PageSize SetPageDevice call; otherwise, the procedure loops through the PageSizes for each media source stored in the InputAttributes dictionary to find the nearest PageSize entry favoring non-rotated over rotated for identical match sizes. The loop is terminated when an exact match is found with no rotation or when all available paper sizes have been exhausted. The loop is optimized not to look for closest matches once it has found a perfect size match and to terminate when it has found a perfect non-rotated match. |