Postscript file not printing / duplexing- Resolved

I’m working with an old vb program that produces and outputs a postscript file to a printer. With the old printer, the file always printed on both sides of the paper. We tested some new printers and some models printed on both sides whereas others would print two single-sided pages. Tracking down the cause was a challenge so I’m noting it here in case this ever comes up again, or might be of help to anyone.

First it wouldn’t print at all, so we turned on the printer’s postscript debugging option and that output a page with the following note:

ERROR: configurationerror
OFFENDING COMMAND: setpagedevice
ERRORINFO: Key= /PageSize Value = arraytype
STACK:
dicttype

I found the paper size hard coded in our program and I updated it to the new paper size. Then it started printing single-sided two sheets.

In our program that generates the postscript, for each side of the page was something like this:

"%%BeginPageSetup" & vbCrLf & _
"<< /Duplex true >> setpagedevice" & vbCrLf & _
"<< /Tumble true >> setpagedevice" & vbCrLf & _
"90 rotate" & vbCrLf & _
"/pagelevel save def" & vbCrLf & _
"%%EndPageSetup" & vbCrLf & _

I found the solution to getting the duplexing to work is to remove the “Duplex true” call from the second page. Changed the front page to:

"%%BeginPageSetup" & vbCrLf & _
"<< /Duplex true /Tumble true >> setpagedevice" & vbCrLf & _
"90 rotate" & vbCrLf & _
"/pagelevel save def" & vbCrLf & _
"%%EndPageSetup" & vbCrLf & _

and removed the Duplex / Tumble line from the back page and it worked, the program now prints on both sides of the paper, yes!!

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *