[cups.general] pstops and DSC conformance (again)
Michael Sweet
msweet at apple.com
Fri Nov 6 09:28:45 PST 2009
On Nov 6, 2009, at 9:02 AM, Tim Waugh wrote:
> On Fri, 2009-11-06 at 08:36 -0800, Michael Sweet wrote:
>> It is not. Strictly speaking, setpagedevice (and any code that
>> redefines that operator) is discouraged in DSC-conforming documents.
>> Use of setpagedevice has to be limited to code surrounded by %%Begin/
>> EndFeature: comments.
>
> OK, thanks for clarifying. Where did you find that by the way?
Section 4.2 of the DSC spec says this:
There are generally few restrictions on the script. It can have
definitions like the prolog and it can also modify the graphics
environment, draw marks on the page, issue showpage, and so on.
There are some PostScript language operators that should be
avoided or at least used with extreme caution. A thorough
discussion of these operators can be found in Appendix I of the
PostScript Language Reference Manual, Second Edition.
Following the reference to Appendix I: Guidelines for Specific Operators yields the recommendation to put setpagedevice inside %%Begin/EndFeature comments, specifically Level 1 compatibility and number-up support.
>> Some day I'm going to have cupstestdsc updated so that it can detect
>> this sort of problem... :)
>
> That would be great. ;-)
>
> Tim.
> */
>
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups
___________________________________________________
Michael Sweet, Senior Printing System Engineer
More information about the cups
mailing list