<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I have recently ported my line printing program paps (http;//<a href="http://github.com/dov/paps">github.com/dov/paps</a>) 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:<br><br><span style="font-family:monospace,monospace">statusdict /setduplexmode known <br>{ statusdict begin setduplexmode end } {pop} ifelse<br>statusdict /settumble known<br>{ statusdict begin settumble end } {pop} ifelse<br></span><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I suppose that I could add these statements through<br><br><span style="font-family:monospace,monospace">cairo_ps_surface_dsc_comment()</span><br><br>but this looks quite ugly, as these statements are not dsc comments. So is there another method?<br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Regards,<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Dov<br><br></div></div>