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

Helge Blischke h.blischke at acm.org
Tue Mar 1 05:55:54 PST 2011


renato 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 manually enter << /MediaType (cover) /MediaColor (white) >>
> setpagedevice on postscript file the paper tray calls works as expected.
> 
> I tried using the DSCComment surface.DscComment ('%%IncludeFeature: *
> MediaType cover'), but did not work.
> 
> is there any way to send commands level 2 to postscript file? before the
> drawing of objects?
> 
> Gratz

The  %%IncludeFeature comment is handled by the pstops filter (since CUPS 
1.3.x, I think). Its success depends on the main / option keyword combo 
being specified as a choice in the ptinter's PPD.

>From my experience with Xerox printers I think that the combo MediaType and 
cover is *not* specified in the PPD, though the printer itself probably 
supports arbitrary string values for both media type and media color.

I suspect you need to edit your PPD accordingly.

Helge





More information about the cups mailing list