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

CharSize value PCL 6 1

Status
Not open for further replies.

EgorovAlex

Technical User
Oct 30, 2008
12
Hello,

How I can convert CharSize value to original value?

Currently I have CharSize = 5,53552857091405E-315 for 12pt font
and CharSize = 5,6022294884157E-315 for 36 pt font (print job from MS Word)
 
The CharSize attribute value should be a positive number indicating the required character size (in the current UnitsPerMeasure units).

The value is usually provided using a real32 datatype, although I guess it could also be provided using the uint16 datatype.

To convert between the CharSize value and the equivalent size in PCL points (72 per inch), the current Measure and UnitsPerMeasure values must be taken into account.

For example:

current Measure value = eInch
current UnitsPerMeasure value = 600
CharSize value = 75
Point size = (75 * 72) / 600
= 9

 
Thank you, currently I have:

UnitsPerMeasure = 600
Measure = eInch
CharSize = 5,53552857091405E-315 (very small Real32 value)

Point size = very small value :(

Also I have PageScale = 5,26354424712089E-315
 
Are you sure that you are interpreting the real32 datatype values correctly?

Can you post the byte sequences (in hexadecimal) which you think correspond to the SetPageScale and SetFont operators, together with their preceding attribute lists.

Indicate whether your print stream is using Big or Little-Endian values.
 
This is my file (all bynary data):
D1 - uint16_xy
5802 5802
F8 - attr_ubyte
89 - UnitsPerMeasure = (600, 600)
C0 - ubyte
00
F8 - attr_ubyte
86 - Measure = eInch
C0 - ubyte
03
F8 - attr_ubyte
8F - ErrorReport = eBackChAndErrPage
41 - BeginSession
C0 - ubyte
00
F8 - attr_ubyte
88 - SourceType = eDefaultDataSource
C0 - ubyte
01
F8 - attr_ubyte
82 - DataOrg = eBinaryLowByteFirst
48 - OpenDataSource
C0 - ubyte
01
F8 - attr_ubyte
26 - DataOrg = eAutoSelect
C0 - ubyte
00
F8 - attr_ubyte
28 - DataOrg = ePortraitOrientation
C8 - ubyte_array
C0 - ubyte
02 - length of array = 2
41 34
F8 - attr_ubyte
25 - MediaSize = A4
43 - BeginPage
D3 - sint16_xy
6400 6400
F8 - attr_ubyte
2A - PageOrigin = (100, 100)
75 - SetPageOrigin
C0 - ubyte
00
F8 - attr_ubyte
1E - TextObjects = 0
C0 - ubyte
01
F8 - attr_ubyte
20 - RasterObjects = 1
C0 - ubyte
00
F8 - attr_ubyte
1F - VectorObjects = 0
7E - SetNeutralAxis
C0 - ubyte
00
F8 - attr_ubyte
1E - TextObjects = 0
C0 - ubyte
00
F8 - attr_ubyte
20 - RasterObjects = 0
C0 - ubyte
00
F8 - attr_ubyte
1F - VectorObjects = 0
6D - SetHalftoneMethod
C0 - ubyte
01
F8 - attr_ubyte
1E - TextObjects = 1
C0 - ubyte
01
F8 - attr_ubyte
20 - RasterObjects = 1
C0 - ubyte
01
F8 - attr_ubyte
1F - VectorObjects = 1
58 - SetColorTreatment
C0 - ubyte
01
F8 - attr_ubyte
1E - TextObjects = 1
C0 - ubyte
01
F8 - attr_ubyte
20 - RasterObjects = 1
C0 - ubyte
01
F8 - attr_ubyte
1F - VectorObjects = 1
94 - SetAdaptiveHalftoning
C0 - ubyte
02
F8 - attr_ubyte
1D - AllObjectTypes = 2
92 - SetColorTrapping
D5 - real32_xy
0000803F 0000803F
F8 - attr_ubyte
2B - PageScale = (5,26354424712089E-315, 5,26354424712089E-315)
77 - SetPageScale
C0 - ubyte
02
F8 - attr_ubyte
03 - ColorSpace = eRGB
6A - SetColorSpace
C0 - ubyte
00
F8 - attr_ubyte
2D - TxMode = eOpaque
78 - SetPatternTxMode
C0 - ubyte
00
F8 - attr_ubyte
2D - TxMode = eOpaque
7C - SetSourceTxMode
D3 - sint16_xy
EB01 7401
F8 - attr_ubyte
4C - Point = (491, 372)
6B - SetCursor
C0 - ubyte
F0
F8 - attr_ubyte
2C - ROP3 = 240
7B - SetROP
C8 - ubyte_array
C1 - uint16
0003 - length of array = 3
FF FF FF
F8 - attr_ubyte
0B - RGBColor = (255, 255, 255)
63 - SetBrushSource
C0 - ubyte
00
F8 - attr_ubyte
05 - NullPen = 0
79 - SetPenSource
85 - NewPath
E1 - uint16_box
EB01 7401 9A11 2B19
F8 - attr_ubyte
42 - BoundingBox = (491, 372, 4506, 6443)
A1 - RectanglePath
86 - PaintPath
C0 - ubyte
FC
F8 - attr_ubyte
2C - ROP3 = 252
7B - SetROP
85 - NewPath
85 - NewPath
E1 - uint16_box
EB01 7401 B302 CC01
F8 - attr_ubyte
42 - BoundingBox = (491, 372, 691, 460)
A1 - RectanglePath
86 - PaintPath
C8 - ubyte_array
C1 - uint16
0003 - length of array = 3
00 00 00
F8 - attr_ubyte
0B - RGBColor = (0, 0, 0)
63 - SetBrushSource
C8 - ubyte_array
C1 - uint16
0010 - length of array = 16
43 6F 75 72 69 65 72 20 20 20 20 20 20 20 20 20
F8 - attr_ubyte
A8 - FontName = Courier
C5 - real32
0000A642
F8 - attr_ubyte
A6 - CharSize = 5,52451968161766E-315
C1 - uint16
7502
F8 - attr_ubyte
AA - SymbolSet = 629
6F - SetFont
D5 - real32_xy
0000803F 0000803F
F8 - attr_ubyte
A4 - CharScale = (5,26354424712089E-315, 5,26354424712089E-315)
65 - SetCharScale
D3 - sint16_xy
EB01 B501
F8 - attr_ubyte
4C - Point = (491, 437)
6B - SetCursor
C9 - uint16_array
C1 - uint16
0004 - length of array = 4
5400 6500 7300 7400
F8 - attr_ubyte
AB - TextData = Test
C8 - ubyte_array
C1 - uint16
0004 - length of array = 4
32 32 32 00
F8 - attr_ubyte
AF - XSpacingData = 50 50 50 0
A8 - Text
85 - NewPath
C8 - ubyte_array
C1 - uint16
0003 - length of array = 3
FF FF FF
F8 - attr_ubyte
0B - RGBColor = (255, 255, 255)
63 - SetBrushSource
85 - NewPath
E1 - uint16_box
EB01 3002 1D02 8802
F8 - attr_ubyte
42 - BoundingBox = (491, 560, 541, 648)
A1 - RectanglePath
86 - PaintPath
C8 - ubyte_array
C1 - uint16
0003 - length of array = 3
00 00 00
F8 - attr_ubyte
0B - RGBColor = (0, 0, 0)
63 - SetBrushSource
D3 - sint16_xy
EB01 7102
F8 - attr_ubyte
4C - Point = (491, 625)
6B - SetCursor
C9 - uint16_array
C1 - uint16
0001 - length of array = 1
5400
F8 - attr_ubyte
AB - TextData = T
A8 - Text
85 - NewPath
C8 - ubyte_array
C1 - uint16
0003 - length of array = 3
FF FF FF
F8 - attr_ubyte
0B - RGBColor = (255, 255, 255)
63 - SetBrushSource
85 - NewPath
E1 - uint16_box
EB01 8E02 1D02 E602
F8 - attr_ubyte
42 - BoundingBox = (491, 654, 541, 742)
A1 - RectanglePath
86 - PaintPath
C8 - ubyte_array
C1 - uint16
0003 - length of array = 3
00 00 00
F8 - attr_ubyte
0B - RGBColor = (0, 0, 0)
63 - SetBrushSource
D3 - sint16_xy
EB01 CF02
F8 - attr_ubyte
4C - Point = (491, 719)
6B - SetCursor
C9 - uint16_array
C1 - uint16
0001 - length of array = 1
6500
F8 - attr_ubyte
AB - TextData = e
A8 - Text
85 - NewPath
C8 - ubyte_array
C1 - uint16
0003 - length of array = 3
FF FF FF
F8 - attr_ubyte
0B - RGBColor = (255, 255, 255)
63 - SetBrushSource
85 - NewPath
E1 - uint16_box
EB01 EC02 1D02 4403
F8 - attr_ubyte
42 - BoundingBox = (491, 748, 541, 836)
A1 - RectanglePath
86 - PaintPath
C8 - ubyte_array
C1 - uint16
0003 - length of array = 3
00 00 00
F8 - attr_ubyte
0B - RGBColor = (0, 0, 0)
63 - SetBrushSource
D3 - sint16_xy
EB01 2D03
F8 - attr_ubyte
4C - Point = (491, 813)
6B - SetCursor
C9 - uint16_array
C1 - uint16
0001 - length of array = 1
7300
F8 - attr_ubyte
AB - TextData = s
A8 - Text
85 - NewPath
C8 - ubyte_array
C1 - uint16
0003 - length of array = 3
FF FF FF
F8 - attr_ubyte
0B - RGBColor = (255, 255, 255)
63 - SetBrushSource
85 - NewPath
E1 - uint16_box
EB01 4A03 1D02 A203
F8 - attr_ubyte
42 - BoundingBox = (491, 842, 541, 930)
A1 - RectanglePath
86 - PaintPath
C8 - ubyte_array
C1 - uint16
0003 - length of array = 3
00 00 00
F8 - attr_ubyte
0B - RGBColor = (0, 0, 0)
63 - SetBrushSource
D3 - sint16_xy
EB01 8B03
F8 - attr_ubyte
4C - Point = (491, 907)
6B - SetCursor
C9 - uint16_array
C1 - uint16
0001 - length of array = 1
7400
F8 - attr_ubyte
AB - TextData = t
A8 - Text
C1 - uint16
0100
F8 - attr_ubyte
31 - PageCopies = 1
44 - EndPage
49 - CloseDataSource
42 - EndSession
 
My interpretation of your print stream is as follows; note that I had to change round the 'endian-ness' of most of your array-length values to suit 'little-Endian':

Code:
*** PCL Analysis ***

Date/Time:  2008-11-10 15:40:51
File:       E:\Gandlake\DataFiles\Temp\Tek-Tips\xx05b.prn
Size:       501 bytes
Analysis:   471 rows (excluding header and trailer lines)

Offset(dec)  Type                   Sequence          Data / Interpretation
¯¯¯¯¯¯¯¯¯¯¯  ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯  ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯  ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
             Comment                                  Start Language = PCLXL requested
             Comment                                  Stream Header assumed: binary low-byte first
0000000000   PCLXL Data Type        0xd1                  uint16_xy
0000000001              Value       0x5802                600
0000000003                          0x5802                600
0000000005   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000006                   Name   0x89                UnitsPerMeasure
0000000007   PCLXL Data Type        0xc0                  ubyte
0000000008              Value       0x00                  eInch
0000000009   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000010                   Name   0x86                Measure
0000000011   PCLXL Data Type        0xc0                  ubyte
0000000012              Value       0x03                  eBackChAndErrPage
0000000013   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000014                   Name   0x8f                ErrorReport
0000000015   PCLXL Operator         0x41              BeginSession
                            No.                       1
0000000016   PCLXL Data Type        0xc0                  ubyte
0000000017              Value       0x00                  eDefaultDataSource
0000000018   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000019                   Name   0x88                SourceType
0000000020   PCLXL Data Type        0xc0                  ubyte
0000000021              Value       0x01                  eBinaryLowByteFirst
0000000022   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000023                   Name   0x82                DataOrg
0000000024   PCLXL Operator         0x48              OpenDataSource
                            No.                       2
0000000025   PCLXL Data Type        0xc0                  ubyte
0000000026              Value       0x01                  eAutoSelect
0000000027   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000028                   Name   0x26                MediaSource
0000000029   PCLXL Data Type        0xc0                  ubyte
0000000030              Value       0x00                  ePortraitOrientation
0000000031   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000032                   Name   0x28                Orientation
0000000033   PCLXL Data Type        0xc8                  ubyte_array
0000000034   PCLXL Data Type        0xc0                  ubyte
0000000035              Elements    0x02                  2
0000000036              Value       0x4134                "A4"
0000000038   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000039                   Name   0x25                MediaSize
0000000040   PCLXL Operator         0x43              BeginPage
                            No.                       3
0000000041   PCLXL Data Type        0xd3                  sint16_xy
0000000042              Value       0x6400                100
0000000044                          0x6400                100
0000000046   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000047                   Name   0x2a                PageOrigin
0000000048   PCLXL Operator         0x75              SetPageOrigin
                            No.                       4
0000000049   PCLXL Data Type        0xc0                  ubyte
0000000050              Value       0x00                  eTonerBlack
0000000051   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000052                   Name   0x1e                TextObjects
0000000053   PCLXL Data Type        0xc0                  ubyte
0000000054              Value       0x01                  eProcessBlack
0000000055   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000056                   Name   0x20                RasterObjects
0000000057   PCLXL Data Type        0xc0                  ubyte
0000000058              Value       0x00                  eTonerBlack
0000000059   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000060                   Name   0x1f                VectorObjects
0000000061   PCLXL Operator         0x7e              SetNeutralAxis
                            No.                       5
0000000062   PCLXL Data Type        0xc0                  ubyte
0000000063              Value       0x00                  eHighLPI
0000000064   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000065                   Name   0x1e                TextObjects
0000000066   PCLXL Data Type        0xc0                  ubyte
0000000067              Value       0x00                  eHighLPI
0000000068   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000069                   Name   0x20                RasterObjects
0000000070   PCLXL Data Type        0xc0                  ubyte
0000000071              Value       0x00                  eHighLPI
0000000072   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000073                   Name   0x1f                VectorObjects
0000000074   PCLXL Operator         0x6d              SetHalftoneMethod
                            No.                       6
0000000075   PCLXL Data Type        0xc0                  ubyte
0000000076              Value       0x01                  eScreenMatch
0000000077   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000078                   Name   0x1e                TextObjects
0000000079   PCLXL Data Type        0xc0                  ubyte
0000000080              Value       0x01                  eScreenMatch
0000000081   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000082                   Name   0x20                RasterObjects
0000000083   PCLXL Data Type        0xc0                  ubyte
0000000084              Value       0x01                  eScreenMatch
0000000085   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000086                   Name   0x1f                VectorObjects
0000000087   PCLXL Operator         0x58              SetColorTreatment
                            No.                       7
0000000088   PCLXL Data Type        0xc0                  ubyte
0000000089              Value       0x01                  eEnable
0000000090   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000091                   Name   0x1e                TextObjects
0000000092   PCLXL Data Type        0xc0                  ubyte
0000000093              Value       0x01                  eEnable
0000000094   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000095                   Name   0x20                RasterObjects
0000000096   PCLXL Data Type        0xc0                  ubyte
0000000097              Value       0x01                  eEnable
0000000098   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000099                   Name   0x1f                VectorObjects
0000000100   PCLXL Operator         0x94              SetAdaptiveHalftoning
                            No.                       8
0000000101   PCLXL Data Type        0xc0                  ubyte
0000000102              Value       0x02                  eNormal
0000000103   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000104                   Name   0x1d                AllObjectTypes
0000000105   PCLXL Operator         0x92              SetColorTrapping
                            No.                       9
0000000106   PCLXL Data Type        0xd5                  real32_xy
0000000107              Value       0x0000803f            1.000000
0000000111                          0x0000803f            1.000000
0000000115   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000116                   Name   0x2b                PageScale
0000000117   PCLXL Operator         0x77              SetPageScale
                            No.                       10
0000000118   PCLXL Data Type        0xc0                  ubyte
0000000119              Value       0x02                  eRGB
0000000120   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000121                   Name   0x03                ColorSpace
0000000122   PCLXL Operator         0x6a              SetColorSpace
                            No.                       11
0000000123   PCLXL Data Type        0xc0                  ubyte
0000000124              Value       0x00                  eOpaque
0000000125   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000126                   Name   0x2d                TxMode
0000000127   PCLXL Operator         0x78              SetPatternTxMode
                            No.                       12
0000000128   PCLXL Data Type        0xc0                  ubyte
0000000129              Value       0x00                  eOpaque
0000000130   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000131                   Name   0x2d                TxMode
0000000132   PCLXL Operator         0x7c              SetSourceTxMode
                            No.                       13
0000000133   PCLXL Data Type        0xd3                  sint16_xy
0000000134              Value       0xeb01                491
0000000136                          0x7401                372
0000000138   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000139                   Name   0x4c                Point
0000000140   PCLXL Operator         0x6b              SetCursor
                            No.                       14
0000000141   PCLXL Data Type        0xc0                  ubyte
0000000142              Value       0xf0                  e_P
0000000143   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000144                   Name   0x2c                ROP3
0000000145   PCLXL Operator         0x7b              SetROP
                            No.                       15
0000000146   PCLXL Data Type        0xc8                  ubyte_array
0000000147   PCLXL Data Type        0xc1                  uint16
0000000148              Elements    0x0300                3
0000000150              Value       0xff                  ( 255
0000000151                          0xff                    255
0000000152                          0xff                    255 )
0000000153   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000154                   Name   0x0b                RGBColor
0000000155   PCLXL Operator         0x63              SetBrushSource
                            No.                       16
0000000156   PCLXL Data Type        0xc0                  ubyte
0000000157              Value       0x00                  0
0000000158   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000159                   Name   0x05                NullPen
0000000160   PCLXL Operator         0x79              SetPenSource
                            No.                       17
0000000161   PCLXL Operator         0x85              NewPath
                            No.                       18
0000000162   PCLXL Data Type        0xe1                  uint16_box
0000000163              Value       0xeb01                491
0000000165                          0x7401                372
0000000167                          0x9a11                4506
0000000169                          0x2b19                6443
0000000171   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000172                   Name   0x42                BoundingBox
0000000173   PCLXL Operator         0xa1              RectanglePath
                            No.                       19
0000000174   PCLXL Operator         0x86              PaintPath
                            No.                       20
0000000175   PCLXL Data Type        0xc0                  ubyte
0000000176              Value       0xfc                  e_PSo
0000000177   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000178                   Name   0x2c                ROP3
0000000179   PCLXL Operator         0x7b              SetROP
                            No.                       21
0000000180   PCLXL Operator         0x85              NewPath
                            No.                       22
0000000181   PCLXL Operator         0x85              NewPath
                            No.                       23
0000000182   PCLXL Data Type        0xe1                  uint16_box
0000000183              Value       0xeb01                491
0000000185                          0x7401                372
0000000187                          0xb302                691
0000000189                          0xcc01                460
0000000191   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000192                   Name   0x42                BoundingBox
0000000193   PCLXL Operator         0xa1              RectanglePath
                            No.                       24
0000000194   PCLXL Operator         0x86              PaintPath
                            No.                       25
0000000195   PCLXL Data Type        0xc8                  ubyte_array
0000000196   PCLXL Data Type        0xc1                  uint16
0000000197              Elements    0x0300                3
0000000199              Value       0x00                  ( 0
0000000200                          0x00                    0
0000000201                          0x00                    0 )
0000000202   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000203                   Name   0x0b                RGBColor
0000000204   PCLXL Operator         0x63              SetBrushSource
                            No.                       26
0000000205   PCLXL Data Type        0xc8                  ubyte_array
0000000206   PCLXL Data Type        0xc1                  uint16
0000000207              Elements    0x1000                16
0000000209              Value       0x436f7572            "Cour"
0000000213                          0x69657220            "ier "
0000000217                          0x20202020            "    "
0000000221                          0x20202020            "    "
0000000225   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000226                   Name   0xa8                FontName
0000000227   PCLXL Data Type        0xc5                  real32
0000000228              Value       0x0000a642            83.000000
0000000232   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000233                   Name   0xa6                CharSize
0000000234   PCLXL Data Type        0xc1                  uint16
0000000235              Value       0x7502                629
0000000237   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000238                   Name   0xaa                SymbolSet
0000000239   PCLXL Operator         0x6f              SetFont
                            No.                       27
0000000240   PCLXL Data Type        0xd5                  real32_xy
0000000241              Value       0x0000803f            1.000000
0000000245                          0x0000803f            1.000000
0000000249   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000250                   Name   0xa4                CharScale
0000000251   PCLXL Operator         0x65              SetCharScale
                            No.                       28
0000000252   PCLXL Data Type        0xd3                  sint16_xy
0000000253              Value       0xeb01                491
0000000255                          0xb501                437
0000000257   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000258                   Name   0x4c                Point
0000000259   PCLXL Operator         0x6b              SetCursor
                            No.                       29
0000000260   PCLXL Data Type        0xc9                  uint16_array
0000000261   PCLXL Data Type        0xc1                  uint16
0000000262              Elements    0x0400                4
0000000264              Value (U+)  0x54006500            "Te"
0000000268                          0x73007400            "st"
0000000272   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000273                   Name   0xab                TextData
0000000274   PCLXL Data Type        0xc8                  ubyte_array
0000000275   PCLXL Data Type        0xc1                  uint16
0000000276              Elements    0x0400                4
0000000278              Value       0x32                  ( 50
0000000279                          0x32                    50
0000000280                          0x32                    50
0000000281                          0x00                    0 )
0000000282   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000283                   Name   0xaf                XSpacingData
0000000284   PCLXL Operator         0xa8              Text
                            No.                       30
0000000285   PCLXL Operator         0x85              NewPath
                            No.                       31
0000000286   PCLXL Data Type        0xc8                  ubyte_array
0000000287   PCLXL Data Type        0xc1                  uint16
0000000288              Elements    0x0300                3
0000000290              Value       0xff                  ( 255
0000000291                          0xff                    255
0000000292                          0xff                    255 )
0000000293   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000294                   Name   0x0b                RGBColor
0000000295   PCLXL Operator         0x63              SetBrushSource
                            No.                       32
0000000296   PCLXL Operator         0x85              NewPath
                            No.                       33
0000000297   PCLXL Data Type        0xe1                  uint16_box
0000000298              Value       0xeb01                491
0000000300                          0x3002                560
0000000302                          0x1d02                541
0000000304                          0x8802                648
0000000306   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000307                   Name   0x42                BoundingBox
0000000308   PCLXL Operator         0xa1              RectanglePath
                            No.                       34
0000000309   PCLXL Operator         0x86              PaintPath
                            No.                       35
0000000310   PCLXL Data Type        0xc8                  ubyte_array
0000000311   PCLXL Data Type        0xc1                  uint16
0000000312              Elements    0x0300                3
0000000314              Value       0x00                  ( 0
0000000315                          0x00                    0
0000000316                          0x00                    0 )
0000000317   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000318                   Name   0x0b                RGBColor
0000000319   PCLXL Operator         0x63              SetBrushSource
                            No.                       36
0000000320   PCLXL Data Type        0xd3                  sint16_xy
0000000321              Value       0xeb01                491
0000000323                          0x7102                625
0000000325   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000326                   Name   0x4c                Point
0000000327   PCLXL Operator         0x6b              SetCursor
                            No.                       37
0000000328   PCLXL Data Type        0xc9                  uint16_array
0000000329   PCLXL Data Type        0xc1                  uint16
0000000330              Elements    0x0100                1
0000000332              Value (U+)  0x5400                "T"
0000000334   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000335                   Name   0xab                TextData
0000000336   PCLXL Operator         0xa8              Text
                            No.                       38
0000000337   PCLXL Operator         0x85              NewPath
                            No.                       39
0000000338   PCLXL Data Type        0xc8                  ubyte_array
0000000339   PCLXL Data Type        0xc1                  uint16
0000000340              Elements    0x0300                3
0000000342              Value       0xff                  ( 255
0000000343                          0xff                    255
0000000344                          0xff                    255 )
0000000345   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000346                   Name   0x0b                RGBColor
0000000347   PCLXL Operator         0x63              SetBrushSource
                            No.                       40
0000000348   PCLXL Operator         0x85              NewPath
                            No.                       41
0000000349   PCLXL Data Type        0xe1                  uint16_box
0000000350              Value       0xeb01                491
0000000352                          0x8e02                654
0000000354                          0x1d02                541
0000000356                          0xe602                742
0000000358   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000359                   Name   0x42                BoundingBox
0000000360   PCLXL Operator         0xa1              RectanglePath
                            No.                       42
0000000361   PCLXL Operator         0x86              PaintPath
                            No.                       43
0000000362   PCLXL Data Type        0xc8                  ubyte_array
0000000363   PCLXL Data Type        0xc1                  uint16
0000000364              Elements    0x0300                3
0000000366              Value       0x00                  ( 0
0000000367                          0x00                    0
0000000368                          0x00                    0 )
0000000369   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000370                   Name   0x0b                RGBColor
0000000371   PCLXL Operator         0x63              SetBrushSource
                            No.                       44
0000000372   PCLXL Data Type        0xd3                  sint16_xy
0000000373              Value       0xeb01                491
0000000375                          0xcf02                719
0000000377   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000378                   Name   0x4c                Point
0000000379   PCLXL Operator         0x6b              SetCursor
                            No.                       45
0000000380   PCLXL Data Type        0xc9                  uint16_array
0000000381   PCLXL Data Type        0xc1                  uint16
0000000382              Elements    0x0100                1
0000000384              Value (U+)  0x6500                "e"
0000000386   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000387                   Name   0xab                TextData
0000000388   PCLXL Operator         0xa8              Text
                            No.                       46
0000000389   PCLXL Operator         0x85              NewPath
                            No.                       47
0000000390   PCLXL Data Type        0xc8                  ubyte_array
0000000391   PCLXL Data Type        0xc1                  uint16
0000000392              Elements    0x0300                3
0000000394              Value       0xff                  ( 255
0000000395                          0xff                    255
0000000396                          0xff                    255 )
0000000397   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000398                   Name   0x0b                RGBColor
0000000399   PCLXL Operator         0x63              SetBrushSource
                            No.                       48
0000000400   PCLXL Operator         0x85              NewPath
                            No.                       49
0000000401   PCLXL Data Type        0xe1                  uint16_box
0000000402              Value       0xeb01                491
0000000404                          0xec02                748
0000000406                          0x1d02                541
0000000408                          0x4403                836
0000000410   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000411                   Name   0x42                BoundingBox
0000000412   PCLXL Operator         0xa1              RectanglePath
                            No.                       50
0000000413   PCLXL Operator         0x86              PaintPath
                            No.                       51
0000000414   PCLXL Data Type        0xc8                  ubyte_array
0000000415   PCLXL Data Type        0xc1                  uint16
0000000416              Elements    0x0300                3
0000000418              Value       0x00                  ( 0
0000000419                          0x00                    0
0000000420                          0x00                    0 )
0000000421   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000422                   Name   0x0b                RGBColor
0000000423   PCLXL Operator         0x63              SetBrushSource
                            No.                       52
0000000424   PCLXL Data Type        0xd3                  sint16_xy
0000000425              Value       0xeb01                491
0000000427                          0x2d03                813
0000000429   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000430                   Name   0x4c                Point
0000000431   PCLXL Operator         0x6b              SetCursor
                            No.                       53
0000000432   PCLXL Data Type        0xc9                  uint16_array
0000000433   PCLXL Data Type        0xc1                  uint16
0000000434              Elements    0x0100                1
0000000436              Value (U+)  0x7300                "s"
0000000438   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000439                   Name   0xab                TextData
0000000440   PCLXL Operator         0xa8              Text
                            No.                       54
0000000441   PCLXL Operator         0x85              NewPath
                            No.                       55
0000000442   PCLXL Data Type        0xc8                  ubyte_array
0000000443   PCLXL Data Type        0xc1                  uint16
0000000444              Elements    0x0300                3
0000000446              Value       0xff                  ( 255
0000000447                          0xff                    255
0000000448                          0xff                    255 )
0000000449   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000450                   Name   0x0b                RGBColor
0000000451   PCLXL Operator         0x63              SetBrushSource
                            No.                       56
0000000452   PCLXL Operator         0x85              NewPath
                            No.                       57
0000000453   PCLXL Data Type        0xe1                  uint16_box
0000000454              Value       0xeb01                491
0000000456                          0x4a03                842
0000000458                          0x1d02                541
0000000460                          0xa203                930
0000000462   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000463                   Name   0x42                BoundingBox
0000000464   PCLXL Operator         0xa1              RectanglePath
                            No.                       58
0000000465   PCLXL Operator         0x86              PaintPath
                            No.                       59
0000000466   PCLXL Data Type        0xc8                  ubyte_array
0000000467   PCLXL Data Type        0xc1                  uint16
0000000468              Elements    0x0300                3
0000000470              Value       0x00                  ( 0
0000000471                          0x00                    0
0000000472                          0x00                    0 )
0000000473   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000474                   Name   0x0b                RGBColor
0000000475   PCLXL Operator         0x63              SetBrushSource
                            No.                       60
0000000476   PCLXL Data Type        0xd3                  sint16_xy
0000000477              Value       0xeb01                491
0000000479                          0x8b03                907
0000000481   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000482                   Name   0x4c                Point
0000000483   PCLXL Operator         0x6b              SetCursor
                            No.                       61
0000000484   PCLXL Data Type        0xc9                  uint16_array
0000000485   PCLXL Data Type        0xc1                  uint16
0000000486              Elements    0x0100                1
0000000488              Value (U+)  0x7400                "t"
0000000490   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000491                   Name   0xab                TextData
0000000492   PCLXL Operator         0xa8              Text
                            No.                       62
0000000493   PCLXL Data Type        0xc1                  uint16
0000000494              Value       0x0100                1
0000000496   PCLXL Attribute Def.   0xf8                attr_ubyte
0000000497                   Name   0x31                PageCopies
0000000498   PCLXL Operator         0x44              EndPage
                            No.                       63
0000000499   PCLXL Operator         0x49              CloseDataSource
                            No.                       64
0000000500   PCLXL Operator         0x42              EndSession
                            No.                       65

*** End of analysis ***

Note that my interpretation of your PageScale value is (1.000, 1.000) and of your CharSize value it is 83.000.
 
Thank you DansDadUK,

I found my error with conversion.

Also may be you know, this file contain several commands BoundingBox, RectanglePath and PaintPath, but on my printed page (and with PCL viewers) I see only text data, not any visible rectangle, why?
 
Also about CharSize, I need make any other conversions to metric system if I have Measure = eInch?
 
I suspect that you don't see any rectangles, because the Pen and Brush are set to inappropriate values.

For example (using the displacements shown in my analysis), the PaintPath operator at displacement 174 is preceded by a RectanglePath operator (@ 173), and these are both preceded by operators to set the current Brush and Pen:

@ 155: SetBrushSource operator sets RGBColor (255,255,255), which is White.
@ 160: SetPenSource operator sets pen to NullPen.

A later SetBrushSource operator (@ 204) sets RGBColor to (0,0,0), which is Black.
This is used by subsequent Text operators (note that Text uses the brush, but not the pen).

As for CharSize: if you use eInch as the unit of measure, then you can do a manual conversion in any analysis.
Or you could set the unit of measure to eMillimeter (value=1), or eTenthsOfAMillimeter (value=2), although you'd obviously have to change all of your other value fields appropriately.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top