[cairo] PostScript backend - PS Level 2 Change Paper Input on same file

Adrian Johnson ajohnson at redneon.com
Tue Mar 1 00:55:51 PST 2011


On 01/03/11 06:33, Renato Magalhães wrote:
> hi all,
> 
> I am developing a printing
> system with postscript in Cairo, with the output file into postscript. In the
> file there are pages that may have N types of
> paper. Example: 1,2,7,11pages = yellow paper, blue paper pages = 3,4,8,9,10.
> 
> I have a Xerox printer that has the interpreter postscript level 2.
> 
> If I use << /MediaType (cover) /MediaColor (white) >> setpagedevice 
> works as expected.
> 
> I
> tried using surface.DscComment ('%% IncludeFeature: * MediaType cover'), but did
> not work.
> 
> is there any way to send commands level 2
> to postscript file? before thedrawing of objects?

I don't think the extra spaces should be in your include feature line.
Try using '%%IncludeFeature: *MediaType cover'.

If that doesn't work I suggest asking on the CUPS list what DSC comments
to use as cairo just inserts the exact text you specify.

> 
> Gratz
> 
> 
> 
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo



More information about the cairo mailing list