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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PJL with PCL or PS file question

Status
Not open for further replies.

megahobnob

Programmer
Sep 9, 2015
2
GB
In PJL is it possible to switch languages based on what the printer supports.

i.e. I add both PCL and PS code to the print file and the printer decides. I won't know what it supports as it's used on multiple printers some PS and some PCL.

is it possible with a command??? thanks.


below sends two jobs:-

<ESC>%–12345X@PJL <CR><LF>
@PJL COMMENT ** Beginning PCL Job ** <CR><LF>
@PJL ENTER LANGUAGE = PCL <CR><LF>
@PJL SET LPARM : PCL SYMSET = DESKTOP <CR><LF>
<ESC>E . . . . PCL job . . . .<ESC>E
~<ESC>%–12345X@PJL COMMENT End PCL <CR><LF>
@PJL COMMENT Ready for PostScript Job <CR><LF>
@PJL ENTER LANGUAGE = POSTSCRIPT <CR><LF>
%!PS-ADOBE ... PostScript print job ... ^D
~<ESC>%–12345X
 
The target printer must support the target Page Description Language which is specified in the @PJL ENTER LANGUAGE = xxx command, otherwise the effect is undefined.

... and you are of course assuming that the printer supports PJL (most LaserJet devices do, except perhaps for the cheaper 'host-based' or 'mobile' printers)
 
but the problem is say I have 10 printers and ALL support PJL but some are postscript only and some are PCL only.

can I combine both print languages into one print job and let the printer decide which it supports with PJL?
 
>> ... can I combine both print languages into one print job and let the printer decide which it supports with PJL? ...

No.

You are effectively sending two print jobs.

Depending on which PDLs the printer supports you may get:
[ul]
[li]Both jobs printed - i.e. your data printed twice.[/li]
[li]One job printed successfully; the other may cause garbage to be printed (perhaps over hundreds of pages), or may even cause the printer to fail, and (perhaps) automatically reboot.[/li]
[li]Neither job printed successfully; again, what gets printed, etc. is somewhat undefined.[/li]
[/ul]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top