[cups] printing files of type PJL encapsulated PostScript document text

Matthias Apitz guru at unixarea.de
Wed Nov 16 03:45:05 PST 2016


Hello,

I found some nice free tool (for Windows) which does a disassembly of
the PCL code:

PCL Paraphernalia:                                                                                  
http://www.pclparaphernalia.eu

The attached file 'simple.pcl', which does not print with CUPS cmd

lpr -Paps -o raw simple.pcl

gives the following listing:


*** Prn Analysis ***:

Date/Time:  16.11.2016 12:33:56
File:       X:\simple.pcl
Size:       150 bytes
Report:     22 rows (excluding header and trailer lines)

Offset: hex  Type                   Sequence          Description
-----------  ---------------------  ----------------  ----------------------------------------------------

00000000     PCL Simple             <Esc>E            Printer Reset
00000002     Data                                      
00000003     PCL Control Code       0x0d              <CR>: Carriage Return
00000004     PCL Control Code       0x0a              <LF>: Line Feed
00000005     PCL Control Code       0x0d              <CR>: Carriage Return
00000006     PCL Control Code       0x0a              <LF>: Line Feed
00000007     Data                                                                    
00000026     PCL Parameterised      <Esc>(s0p         Primary Font: Spacing: Fixed
0000002b                                   3b         Primary Font: Stroke Weight: Bold
0000002d                                   10h        Primary Font: Pitch (10 characters per inch)
00000030                                   12V        Primary Font: Height (12 points)
00000033     Data                                     HIDETEXT.PCL
0000003f     PCL Control Code       0x0d              <CR>: Carriage Return
00000040     PCL Control Code       0x0a              <LF>: Line Feed
00000041     PCL Control Code       0x0d              <CR>: Carriage Return
00000042     PCL Control Code       0x0a              <LF>: Line Feed
00000043     PCL Control Code       0x0d              <CR>: Carriage Return
00000044     PCL Control Code       0x0a              <LF>: Line Feed
00000045     Data                                     This page demonstrates the various ways you can prov
00000079                                              ide text data for indexing,
00000094     PCL Control Code       0x0d              <CR>: Carriage Return
00000095     PCL Control Code       0x0a              <LF>: Line Feed

*** End of Report ***

It seems that the sequence <Esc>(s0p3b10h12V is the problem, I can not
even find this in my PCL manuals. When I change this to <Esc>(s0P only
(note the capital 'P') it prints fine, printing the rest '3b10h12V' just
as it were normal text.

Any comments?

	matthias
-- 
Matthias Apitz, ✉ guru at unixarea.de, ⌂ http://www.unixarea.de/  ☎ +49-176-38902045


More information about the cups mailing list