• ×
    Information
    Windows update impacting certain printer icons and names. Microsoft is working on a solution.
    Click here to learn more
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Windows update impacting certain printer icons and names. Microsoft is working on a solution.
    Click here to learn more
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
The HP Community is where owners of HP products, like you, volunteer to help each other find solutions.
Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
HP Recommended

Hello,

 

I need to extract the job name (document name) of raw print data received on port 9100.

 

Within PJL the job name is transferred with the @PJL SET JOB NAME="document" - command.

 

My question is which HP printer driver generates this PJL data? I've found out that my private Laserjet M1530-driver does, but I've found no other one.

 

Does anybody know which of the windows build in HP printer drivers generates the PJL-JOBNAME-output?

 

Many thx

Thomas

1 ACCEPTED SOLUTION

Accepted Solutions
HP Recommended

Perhaps the built-in PCL6 (PCL XL) drivers don't include what you want.

 

My Windows 8.1 Professional 64-bit system has a built-in PCL5 driver for the LaserJet 1320 printers:

 

Capture.PNG

 

 

You may have to click the Windows Update button in the Add Printer dialogue, then wait (perhaps for several minutes) whilst additional drivers are downloaded, before the list is repopulated.

View solution in original post

5 REPLIES 5
HP Recommended

I suspect that many of the LaserJet drivers include this information as part of the generated job header.

 

For example, on my Windows 8.1 Pro 64-bit system, the PCL5 driver built-in to the operating system for my LaserJet 1320 generates job headers of the form:

 

<Esc>%-12345X
@PJL JOB NAME="EAN13_notes.rtf.txt - Notepad"[0a]
@PJL SET STRINGCODESET=UTF8[0a]
@PJL COMMENT "hp LaserJet 1320 PCL 5 (61.53.25.9); Windows 8.1 Pro 6.3.9600.1; Unidrv 0.3.9600.16384"[0a]
@PJL COMMENT "Username: chris; App Filename: EAN13_notes.rtf.txt - Notepad; 4-30-2014"[0a]
@PJL DMINFO ASCIIHEX="0400040101020D101001153230313430343330313533373130"[0a]
@PJL SET HOLD=OFF[0a]
@PJL SET USERNAME="chris"[0a]
@PJL SET JOBNAME="EAN13_notes.rtf.txt - Notepad"[0a]
@PJL SET PROCESSINGTYPE="STAPLING"[0a]
@PJL SET PROCESSINGOPTION="NONE"[0a]
@PJL SET PROCESSINGBOUNDARY=MOPY[0a]
@PJL SET RESOLUTION=600[0a]
@PJL ENTER LANGUAGE=PCL[0a]
<Esc>E
. . .
etc.

where <Esc> represents the Escape control-code character, and [0a] represents the LineFeed control-code character.

HP Recommended

hmm, I've also tried many of the built-in standard-drivers, but non of them does the job.

 

All of them do only generate:

 

ESC%-12345X@PJL JOB
@PJL SET JOBATTR "OS =Windows"
@PJL SET JOBATTR "OS Version = Windows 8.1 6.3.9600.1"
@PJL SET JOBATTR "Render Type = InOS"
@PJL SET JOBATTR "Render Name = HP PCL6 Class Driver"
@PJL SET JOBATTR "Render Version=6.3.4.1"
@PJL SET COPIES=1
@PJL SET QTY=1
@PJL SET RESOLUTION=600
@PJL ENTER LANGUAGE=PCLXL
) HP-PCL XL;3;0;Comment Copyright(c) 1999-2011 Hewlett-Packard Corporation

 

And strange, I also use Windows 8.1 pro, 64bit, and I do not have the Laserjet 1320 listed ...

 

HP Recommended

Perhaps the built-in PCL6 (PCL XL) drivers don't include what you want.

 

My Windows 8.1 Professional 64-bit system has a built-in PCL5 driver for the LaserJet 1320 printers:

 

Capture.PNG

 

 

You may have to click the Windows Update button in the Add Printer dialogue, then wait (perhaps for several minutes) whilst additional drivers are downloaded, before the list is repopulated.

HP Recommended

... and I know that the PCL XL driver (not an in-operating system one) for my LaserJet Pro 400 Colour MFP M475dn printer includes the @PJL SETJOBNAME command in the job headers.

HP Recommended

ok!

 

Have used the "Windows Update"-Feature within the printer setup dialog, got the Laserjet 1320, and does work.

 

ESC%-12345X@PJL JOB NAME="Testseite"
@PJL SET STRINGCODESET=UTF8
@PJL COMMENT "hp LaserJet 1320 PCL 5 (61.53.25.9); Windows 8.1 Pro 6.3.9600.1; Unidrv 0.3.9600.17415"
@PJL COMMENT "Username: thomas; App Filename: Testseite; 5-26-2015"
@PJL DMINFO ASCIIHEX="0400040101020D101001153230313530353236313132303032"
@PJL SET HOLD=OFF
@PJL SET USERNAME="thomas"
@PJL SET JOBNAME="Testseite"
@PJL SET QTY=1
@PJL SET PROCESSINGTYPE="STAPLING"
@PJL SET PROCESSINGOPTION="NONE"
@PJL SET PROCESSINGBOUNDARY=MOPY
@PJL SET RESOLUTION=600
@PJL ENTER LANGUAGE=PCL

 

Then I've also tried  the "Laserjet 2100 Series PCL5" which also does the job well:

 

ESC%-12345X@PJL JOB NAME="Testseite"
@PJL SET STRINGCODESET=UTF8
@PJL COMMENT "HP LaserJet 2100 Series PCL 5 (61.53.25.9); Windows 8.1 Pro 6.3.9600.1; Unidrv 0.3.9600.17415"
@PJL COMMENT "Username: thomas; App Filename: Testseite; 5-26-2015"
@PJL DMINFO ASCIIHEX="0400040101020D101001153230313530353236313133323130"
@PJL SET HOLD=OFF
@PJL SET USERNAME="thomas"
@PJL SET JOBNAME="Testseite"
@PJL SET QTY=1
@PJL SET PROCESSINGTYPE="STAPLING"
@PJL SET PROCESSINGOPTION="NONE"
@PJL SET PROCESSINGBOUNDARY=MOPY
@PJL SET RESOLUTION=600
@PJL ENTER LANGUAGE=PCL

 

while the "Laserjet 2100 PCL6" does not:

 

ESC%-12345X@PJL JOB
@PJL COMMENT MS PCLXL NT Driver
@PJL SET PAGEPROTECT=ON
@PJL SET TIMEOUT=90
@PJL SET RESOLUTION=600
@PJL SET BITSPERPIXEL=2
@PJL ENTER LANGUAGE=PCLXL
) HP-PCL XL;2;0;Comment Copyright(c) 1999 Microsoft Corporation

 

So as the PCL-5 version (built-in) seems to be able to do the job, while the PCL6-versoin (built-in) does not ...

 

Now I hope that PCL5 will suffice for the underlying printing application.

 

Chris, thank you very much!

and best regards

Thomas

 

Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.