EgorovAlex
Technical User
- Oct 30, 2008
- 12
Hello,
I hava small PCL 6 class 3 file (attached), it is created from Windows Notepad and contain only one word "abcba". It is created for test.
Now I try to get this text from spl file, but I don't know, how to work with fonts, when I parse this file, I receive TextData = #01#02#03#02#01 - I know, this is my text and I need get symbols for this numbers, this is font description from spl file:
[tt][blue]
4D532050434C584C466F6E7420303031 - "MS PCLXLFont 001"
F8 - Attribute
A8 - FontName (="MS PCLXLFont 001"
4F - BeginFontHeader
C1 - uint16
0800 - 8
F8 - Attribute
A7 - FontHeaderLength (=8)
50 - ReadFontHeader
FB - dataLengthByte
08 - Length of extended data
0000000201001770 - font data
C1
0600
F8
A7
50
FB
06
4754000002D8
C1
0C00
F8
A7
50
FB
0C
000100000006004000020020
C1
6000
F8
A7
50
FB
60
63767420000000000000006C000000F46670676D0000000000000160000
00020676469720000000000000000000000006865616400000000000001
80000000386D61787000000000000001B80000002070726570000000000
00001D800000100
C1
F400
F8
A7
50
FB
F4
0000FFE10000FFE70000FFDB05030522043E045605C805ED062B0644FE7
5FE5C00C500D2009400B9065000AFFFFFFFFFFFFFFFFF05C800DE064401
42FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFF008900A1FFFFFFFFFFFF00CA00F7053400AD
00AC00BB00A800BA0425001901A300DE003200F7021F00960170007B006
302A602E4FED8008801280141021F00A5003A00A600AD026900B4002B00
AD005CFEB9007C004C006F007E00B9008700E400AB007F029A064400F70
12804A00281004A02DA030300190141012800F7008800A80206FE500650
00CD006900950078
C1
2000
F8
A7
50
FB
20
B11F0F2C23208A8A45505821211B4544592D2C4B525845441B2121592D0
00000
C1
3800
F8
A7
50
FB
38
00010000000040000259F9D55F0F3CF5000B080000000000A9117A1D000
00000B16E0F850000FE5004D206500000000C0001000000000000
C1
2000
F8
A7
50
FB
20
00010000029A0078001E004500050002001000160096000000D30121000
30001
C1
0001
F8
A7
50
FA
00010000
40461A0A641F5A4C231F3F08231F0F0E231F0D0C231F0B0A2F1F0A060D1
F0504251F03022F1F09083C1F01002F1F07062F1F63625A0F5D5BE00F5E
78E00F785B540F4D12A00F3D12B80120403B0F3C12F00F3B3AE00F53121
31F5110191F4410A00F7215D20F6210600F5F10E00F5810600F5610E00F
5410E00F3E10E00F3A10B40F3710E00F3233B80120400F0F3310820F151
0E00F1310E00F1110B80140401B0F12109E0F1012121F0F1C701C701D80
1D041F066F069F06033201B901FF00084B5358B001B0018E59858D4B535
8B0801D597373012B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B002B2B
2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B0000
C1
0C00
F8
A7
50
FB
0C
4743000000060000FFFF0000
C1
0600
F8
A7
50
FB
06
FFFF00000000
51 - EndFontHeader
[/blue][/tt]
How I can use this font data to get readable text?
I hava small PCL 6 class 3 file (attached), it is created from Windows Notepad and contain only one word "abcba". It is created for test.
Now I try to get this text from spl file, but I don't know, how to work with fonts, when I parse this file, I receive TextData = #01#02#03#02#01 - I know, this is my text and I need get symbols for this numbers, this is font description from spl file:
[tt][blue]
4D532050434C584C466F6E7420303031 - "MS PCLXLFont 001"
F8 - Attribute
A8 - FontName (="MS PCLXLFont 001"
4F - BeginFontHeader
C1 - uint16
0800 - 8
F8 - Attribute
A7 - FontHeaderLength (=8)
50 - ReadFontHeader
FB - dataLengthByte
08 - Length of extended data
0000000201001770 - font data
C1
0600
F8
A7
50
FB
06
4754000002D8
C1
0C00
F8
A7
50
FB
0C
000100000006004000020020
C1
6000
F8
A7
50
FB
60
63767420000000000000006C000000F46670676D0000000000000160000
00020676469720000000000000000000000006865616400000000000001
80000000386D61787000000000000001B80000002070726570000000000
00001D800000100
C1
F400
F8
A7
50
FB
F4
0000FFE10000FFE70000FFDB05030522043E045605C805ED062B0644FE7
5FE5C00C500D2009400B9065000AFFFFFFFFFFFFFFFFF05C800DE064401
42FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFF008900A1FFFFFFFFFFFF00CA00F7053400AD
00AC00BB00A800BA0425001901A300DE003200F7021F00960170007B006
302A602E4FED8008801280141021F00A5003A00A600AD026900B4002B00
AD005CFEB9007C004C006F007E00B9008700E400AB007F029A064400F70
12804A00281004A02DA030300190141012800F7008800A80206FE500650
00CD006900950078
C1
2000
F8
A7
50
FB
20
B11F0F2C23208A8A45505821211B4544592D2C4B525845441B2121592D0
00000
C1
3800
F8
A7
50
FB
38
00010000000040000259F9D55F0F3CF5000B080000000000A9117A1D000
00000B16E0F850000FE5004D206500000000C0001000000000000
C1
2000
F8
A7
50
FB
20
00010000029A0078001E004500050002001000160096000000D30121000
30001
C1
0001
F8
A7
50
FA
00010000
40461A0A641F5A4C231F3F08231F0F0E231F0D0C231F0B0A2F1F0A060D1
F0504251F03022F1F09083C1F01002F1F07062F1F63625A0F5D5BE00F5E
78E00F785B540F4D12A00F3D12B80120403B0F3C12F00F3B3AE00F53121
31F5110191F4410A00F7215D20F6210600F5F10E00F5810600F5610E00F
5410E00F3E10E00F3A10B40F3710E00F3233B80120400F0F3310820F151
0E00F1310E00F1110B80140401B0F12109E0F1012121F0F1C701C701D80
1D041F066F069F06033201B901FF00084B5358B001B0018E59858D4B535
8B0801D597373012B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B002B2B
2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B0000
C1
0C00
F8
A7
50
FB
0C
4743000000060000FFFF0000
C1
0600
F8
A7
50
FB
06
FFFF00000000
51 - EndFontHeader
[/blue][/tt]
How I can use this font data to get readable text?