PWG and PCLm Mobile Print File Formats

Posted on | December 22, 2014 | No Comments

PageTech tools are now able to read, write and edit the job ticketing information found in the PWG and PCLm mobile print file formats. Both formats include embedded data structures with job ticketing data on a page-by-page basis. In this initial release, we are laying the groundwork for a full set of tools for anyone developing mobile or cloud-based applications that require printing or converting PCL to PDF.

When converting PCL into either PWG or PCLm, our product uniquely extract all the job ticket related PCL escape codes and PJL commands and includes it in the rendered output file. If no page size is provided in the PCL, the product will determine the page size based on the area being rendered during the conversion.

Our Port Monitor’s Indexer can be set-up to prompt the user for additional job ticketing data (postal mail address, archiving keywords, etc.) that need to be inserted into the PCL as it passes through the spooler. In addition, job ticket (.JTX) files can be saved, edited and used as default values for any job ticketing fields not found in the PWG or PCLm files.

How to convert PCL to PWG or PCLm and view job ticketing data captured during the conversion process:

Select File Convert… -> Select your Test.pcl file and set PWG or PCLm in “Type” dropdown, then click –> Convert –>.

The converted PWG or PCLm file will include whatever job ticketing information found in the PCL and will be included in that output file’s job ticket data structure. If the Preferences-> Job Ticket Preferences -> ”Use Job Ticket in Conversions” is pointing to a default job ticket (.JTX) file. Then whatever job ticketing data found in the PCL will override the job ticketing data listed in the default .JTX file, (In future release, we will be adding preferences for each job ticket field value i.e. “prefer incoming value” or “prefer default value” .. for this field).

How to view the job ticketing data stored in an existing PWG or PCLm file:

Open File > “View Image…” the first page of the image will appear in the viewer. To view the job ticketing data for the corresponding “viewed” page Select “Job Ticket” –> “View Info for this Image”. To view both the page and its corresponding job ticketing data side by side select, Window -> “Tile Vertically”.

Now you can navigate through the Open Image pages and the job ticket pages will change to match the “viewed” page. However, you cannot navigate to other job ticket pages and have the viewed page change to match it. To quit, click Save Job Ticket -> Save Job Ticket As… or File -> Close.

JTLOG File

The JTLOG file saves all the job ticketing information found during the conversion of a PCL file into PWG or PCLm formats. It displays the first page’s full set of job ticketing information found.

Starting on the second page until the last page, it only displays any changes found on each page.

JTLog file structure:

job ticketing information ;
; Job Ticket Info converting ‘C:\..\JTixTest.pcl’
;
;=====================================
;
; Page 1 – all elements
;
Address 1 = Field added by PageTech for future use
Address 2 = Field added by PageTech for future use
Address 3 = Field added by PageTech for future use
Address 4 = Field added by PageTech for future use
Address 5 = Field added by PageTech for future use
Address 6 = Field added by PageTech for future use
Phone = Field added by PageTech for future use
Email = Field added by PageTech for future use
IMB = Field added by PageTech for future use
Archive Key = Field added by PageTech for future use
Job Name =
Copies = 1
Binding Edge = Long_Edge
Binding Type = Default
Job Delivery = False
Job Due_Date =
Job Notes =
Document Folding = Crease
Document Lamination = False
Document Output Bin = Upper
Media Color = RGB(255,255,255)
Duplexing = No_Duplexing
Paper Size = Executive
Paper Type = Default
Paper Coating = Default
Insert Sheet = False
Leading Long Edge = False
Media Source = Default
Media Weight grams/m2 = 0
Back Cross Feed Flipped = False
Back Feed Flipped = False
Orientation = Portrait
Output Quality = Draft
Page Bleeds = Default
Alternate Primary = RGB(0,0,0)
Back Side of Page = False
Jog = None
Cutting = None
;
; Page 3 – modified elements only
;
Document Output Bin = Lower
Paper Size = Letter
Media Source = Printer_Spec
Orientation = Landscape
;
; Page 5 – modified elements only
;
Document Output Bin = Upper
Paper Size = Legal
Media Source = Manual
Orientation = Reverse_Portrait

PCLCodes – PCL Disassembly of the PCL/PJL File Output

PCLCodes can also be used to disassemble PCL/PJL to validate what was in that file and compare it to what is found in the JTLOG file after a conversion of PCL into either PWG or PCLM formats.

The output of PCLCodes:
1-31-2014 15:58 PCLCodes 13.40

Decoding ‘JTixTest.pcl’
—————————————————————————–
[ ESC E ] Reset
[ ESC % -12345 X ] Exit Language
@PJL SET BINDING=LONGEDGE
@PJL SET PRINTQUALITY=DRAFT
@PJL SET FOLDING=CREASE
@PJL ENTER LANGUAGE=PCL
[ ESC & l 0 S ] Duplex Mode Setting : Simplex
[ ESC & l 1 G ] Select Output Tray : Upper Bin
[ ESC & l 1 A ] Set Page Size : Executive
[ ESC & l 0 H ] Select Paper Source : Print Current Page
[ ESC & l 0 O ] Paper Orientation : Portrait
Page 1<LF>
<FF>
[Page 1 Eject offset 147 ]
Page 2<LF>
<FF>
[Page 2 Eject offset 155 ]
[ ESC & l 2 G ] Select Output Tray : Lower (Rear) Bin
[ ESC & l 2 A ] Set Page Size : Letter
[ ESC & l 1 H ] Select Paper Source : Printer Specific
[ ESC & l 1 O ] Paper Orientation : Landscape
Page 3<LF>
<FF>
[Page 3 Eject offset 183 ]
Page 4<LF>
<FF>
[Page 4 Eject offset 191 ]
[ ESC & l 1 G ] Select Output Tray : Upper Bin
[ ESC & l 3 A ] Set Page Size : Legal
[ ESC & l 2 H ] Select Paper Source : Manual
[ ESC & l 2 O ] Paper Orientation : Reverse Portrait
Page 5<LF>
<FF>
[Page 5 Eject offset 219 ]
Page 6<LF>
<FF>

If you enjoyed this post, make sure you subscribe to my RSS feed!

Comments

Leave a Reply

You must be logged in to post a comment.