Inserting duplex and tumble options in cairo postscript output

Dov Grobgeld <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CA++fsGE1XrPYWgORvSijC9WKt0SywvmmH9C7WBk2QX81whfNeA@mail.gmail.com>
I have recently ported my line printing program paps (http;//
github.com/dov/paps) from my own postscript generation to using cairo. One
of the things I wonder is how to insert tumble and duplex instructions in
the generated postscript. The postscript for duplex and tumple typically
look as follows:

statusdict /setduplexmode known
{ statusdict begin setduplexmode end } {pop} ifelse
statusdict /settumble known
{ statusdict begin settumble end } {pop} ifelse

I suppose that I could add these statements through

cairo_ps_surface_dsc_comment()

but this looks quite ugly, as these statements are not dsc comments. So is
there another method?

Regards,
Dov

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.