On Fri, Feb 17, 2006 at 01:26:09PM -0500, [EMAIL PROTECTED] wrote: > I use CUPS's xpp. It lets me tell it whether to print double-sided. > For files from some programs, it does double-sided when I tell xpp to do > so. For postscript files from my own programs, it prints > single-sided anyway. What kind of postscript code do I need to use so > for end-of-page so that xpp and my printer will deign to allow > double-sided printing? > > My printer is a brother HL-1870N networked Postscript printer. > > -- hendrik
The answer was to place the line << /Duplex true >> setpagedevice near the start of the Postscript file. The C code I use to write the very minimal Postscript header is now fprintf(printer, "%! PRINTPS.CPP PostScript OUTPUT\n"); fprintf(printer, "<< /Duplex true >> setpagedevice\n"); fprintf(printer, "/cour /Courier findfont %d scalefont def\n", linesize); fprintf(printer, "cour setfont gsave\n"); instead of fprintf(printer, "%! PRINTPS.CPP PostScript OUTPUT\n"); fprintf(printer, "/cour /Courier findfont %d scalefont def\n", linesize); fprintf(printer, "cour setfont gsave\n"); -- hendrik -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]