Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PJL override postscript settings?

Status
Not open for further replies.

cheyney

Programmer
Jul 16, 2002
335
CA
I want to print previously generated postscript files. The postscript files were generated with a print driver. I want to override certain settings in them, like the job name, user, copies, etc. without parsing the postscript (or if i need to, is there an easy way to do this?) I have tried PJL and have come up with something like this:

%-12345X@PJL
@PJL JOB NAME = "job1" DISPLAY = "display1"
@PJL SET COPIES = 2
@PJL ENTER LANGUAGE = POSTSCRIPT
<postscript file here>
%-12345X@PJL
@PJL EOJ NAME = &quot;END OF JOB&quot;
%-12345X

which should rename the job to display1 and print 2 copies. However it still reads the job name and number of copies from the postscript and essentially overrides whatever i have done in PJL. Is there a way around this? If not with PJL, whats the best way to change the settings in a previously generated postscript file?

thanks in advance,

cheyney
 
PostScript is a programming language, so as such there aren't &quot;settings&quot; that you tune so much as paramaters to operators.

However, &quot;jobname&quot; and &quot;number of copies&quot; are typically device-specific, and so typically controlled by the &quot;setpagedevice&quot; PostScript operator. To make your changes, you would need to edit the PostScript code.

Sorry, but can't be more specific without seeing the code in question.

Thomas D. Greer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top