[cups.general] pstops and DSC conformance (again)
Tim Waugh
twaugh at redhat.com
Fri Nov 6 05:55:28 PST 2009
On Tue, 2009-11-03 at 08:59 -0800, Michael Sweet wrote:
> Actually, it isn't actually safe to save before you do the
> setpagedevice commands, since the restore will undo the setpagedevice
> commands... :(
How about an input file that redefines setpagedevice in the prolog --
can that possibly be allowed in a DSC-comformant document?
It turns out that psnup (from psutils-1.17) acts in that way:
%%BeginProlog
%%BeginProcSet: PStoPS 1 15
userdict begin
....
/setpagedevice {pop}bind 1 index where{dup wcheck{3 1 roll put}
{pop def}ifelse}{def}ifelse
....
end
%%EndProcSet
This comes from:
yes | cat -n | head -n 250 | enscript -o foo.ps
psnup -2 foo.ps > foo2.ps
originally from this bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=532740
Tim.
*/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part
URL: <https://lists.cups.org/pipermail/cups/attachments/20091106/f4909516/attachment.bin>
More information about the cups
mailing list