I'm trying to create a report file in pdf format, but display of non-English text isn't correct, (utf-8 encoding)
Ð<92>ойна в Южной Ð<9e>Ñ<81>еÑ<82>ии
BT
/F1 1 Tf
14 0 0 14 50.00 631.00 Tm
0.00 0.00 0.00 rg
(Ð<92>ойна в Южной Ð<9e>Ñ<81>еÑ<82>ии
) Tj
ET
Thanks for the reply, I created the pdf file by my own library, it works for english, french and other iso-8859-1 languages, but not for others like russian (iso-8859-5) and must the fonts be embedded?
below is the file I created,
%PDF-1.2
1 0 obj
<<
/CreationDate (D:20120423025455)
/Producer (N/A)
>>
endobj
6 0 obj
<<
/Font << /F1 7 0 R /F2 9 0 R >>
/ProcSet [ /PDF /Text /ImageC /ImageI]
>>
endobj
7 0 obj
<<
/Type /Font
/Subtype /TrueType
/Name /F1
/BaseFont /Verdana
/Encoding /WinAnsiEncoding
/FirstChar 0
/LastChar 69
/FontDescriptor 8 0 R
/Widths[1000 701 496 606 351 637 534 644 595 620 640 591 696 637 570 838
594 599 887 623 600 797 591 683 621 685 614 605 524 794 591 640
566 363 685 745 363 761 875 615 454 751 644 644 692 635 454 632
394 623 454 818 632 600 591 606 274 595 426 632 351 972 520 545
818 635 787 393 471 840 ]>>
endobj
8 0 obj
<<
/Type /FontDescriptor
/FontName /Verdana
/Flags 4
/FontBBox [-49 -206 1445 1000]
/MissingWidth 1000
/StemV 96
/StemH 96
/ItalicAngle 0
/CapHeight 1000
/XHeight 700
/Ascent 1000
/Descent -211
/Leading 211
/MaxWidth 1526
/AvgWidth 526>>
endobj
9 0 obj
<<
/Type /Font
/Subtype /TrueType
/Name /F2
/BaseFont /Verdana-Bold
/Encoding /WinAnsiEncoding
/FirstChar 0
/LastChar 27
/Widths[1000 761 686 720 719 667 341 677 1195 999 850 598 664 535 720 402
710 710 965 531 699 776 670 691 681 757 696 684 ]
/FontDescriptor 10 0 R>>
endobj
10 0 obj
<<
/Type /FontDescriptor
/FontName /Verdana-Bold
/Flags 4
/FontBBox [-73 -207 1706 1000]
/MissingWidth 1000
/StemV 186
/StemH 186
/ItalicAngle 0
/CapHeight 1000
/XHeight 700
/Ascent 1000
/Descent -167
/Leading 167
/MaxWidth 1750
/AvgWidth 583>>
endobj
11 0 obj
<<
/Type /Page
/Parent 3 0 R
/Resources 14 0 R
/Contents 12 0 R
>>
endobj
12 0 obj
<<
/Length 13 0 R
>>
stream
q
611 0 0 791 0.00 0.00 cm
/Im1 Do
Q
BT
/F1 1 Tf
23 0 0 23 150.00 600.00 Tm
0.00 0.00 0.00 rg
(PDF Report
) Tj
ET
BT
/F1 1 Tf
10 0 0 10 150.00 565.50 Tm
0.54 0.65 0.62 rg
(
) Tj
ET
0.54 0.65 0.62 rg
148 546 464 23 re
f
BT
/F2 1 Tf
16 0 0 16 150.00 550.50 Tm
1.00 1.00 1.00 rg
(asdf
) Tj
ET
BT
/F1 1 Tf
10 0 0 10 150.00 476.50 Tm
0.54 0.65 0.62 rg
(Generated on: Mon Apr 23 02:54:55 2012
) Tj
ET
BT
/F1 1 Tf
10 0 0 10 150.00 461.50 Tm
0.54 0.65 0.62 rg
(Generated by:
) Tj
ET
BT
/F1 1 Tf
10 0 0 10 150.00 446.50 Tm
0.54 0.65 0.62 rg
(File Name:
) Tj
ET
BT
/F1 1 Tf
10 0 0 10 150.00 431.50 Tm
0.54 0.65 0.62 rg
(Time: 2012-04-16 00:00
) Tj
ET
BT
/F1 1 Tf
10 0 0 10 150.00 416.50 Tm
0.54 0.65 0.62 rg
(Devices: 0 (See Appendix A)
) Tj
ET
endstream
endobj
13 0 obj
838
endobj
14 0 obj
<<
/Font << /F1 7 0 R /F2 9 0 R >>
/ProcSet [ /PDF /Text /ImageC /ImageI]
/XObject << /Im1 15 0 R
>>
>>
endobj
15 0 obj
<<
/Subtype /Image
/BitsPerComponent 8
/Filter [/FlateDecode]
/Height 1650
/Width 1276
/DecodeParms [<</Predictor 15 /Colors 3 /Columns 1276>>]
/ColorSpace /DeviceRGB
/Length 43454
>>
stream
........................
endstream
endobj
16 0 obj
<<
/Type /Page
/Parent 3 0 R
/Resources 19 0 R
/Contents 17 0 R
>>
endobj
17 0 obj
<<
/Length 18 0 R
>>
stream
50.00 757.00 m
0.20 w
0.54 0.65 0.62 rg
562.00 757.00 l
f
S
0.00 0.00 0.00 rg
q
601 0 0 24 0.00 736.00 cm
/Im2 Do
Q
BT
/F1 1 Tf
16 0 0 16 50.00 742.00 Tm
1.00 1.00 1.00 rg
(Table of Contents
) Tj
ET
BT
/F1 1 Tf
12 0 0 12 50.00 706.00 Tm
0.00 0.00 0.00 rg
(
) Tj
ET
0.87 0.92 0.91 rg
68 677 500 14 re
f
BT
/F1 1 Tf
12 0 0 12 70.00 679.00 Tm
0.00 0.00 0.00 rg
(Introduction) Tj
ET
BT
/F1 1 Tf
10 0 0 10 547.00 679.00 Tm
(2 ) Tj
ET
BT
/F1 1 Tf
10 0 0 10 70.00 679.00 Tm
0.00 0.00 0.00 rg
(
) Tj
ET
BT
/F1 1 Tf
10 0 0 10 80.00 656.50 Tm
0.00 0.00 0.00 rg
(²ÞÙÝÐ Ò ÎÖÝÞÙ ŸáÕâØØ) Tj
ET
BT
/F1 1 Tf
10 0 0 10 547.00 656.50 Tm
(2 ) Tj
ET
BT
/F1 1 Tf
12 0 0 12 80.00 656.50 Tm
0.00 0.00 0.00 rg
(
) Tj
ET
0.87 0.92 0.91 rg
68 627 500 14 re
f
BT
/F1 1 Tf
12 0 0 12 70.00 629.50 Tm
0.00 0.00 0.00 rg
(Appendix A) Tj
ET
BT
/F1 1 Tf
10 0 0 10 547.00 629.50 Tm
(3 ) Tj
ET
50.00 45.00 m
0.20 w
0.54 0.65 0.62 rg
562.00 45.00 l
f
S
BT
/F1 1 Tf
10 0 0 10 50.00 30.00 Tm
0.54 0.65 0.62 rg
(© 2012 N/A) Tj
ET
BT
/F1 1 Tf
10 0 0 10 492.00 30.00 Tm
0.54 0.65 0.62 rg
[(Page 1 )(of 3 )] TJ
ET
endstream
endobj
18 0 obj
1219
endobj
19 0 obj
<<
/Font << /F1 7 0 R /F2 9 0 R >>
/ProcSet [ /PDF /Text /ImageC /ImageI]
/XObject << /Im2 20 0 R
>>
>>
endobj
20 0 obj
<<
/Subtype /Image
/BitsPerComponent 8
/Filter [/FlateDecode]
/Height 53
/Width 1275
/DecodeParms [<</Predictor 15 /Colors 3 /Columns 1275>>]
/ColorSpace /DeviceRGB
/Length 1896
>>
stream
....................
endstream
endobj
21 0 obj
<<
/Type /Page
/Parent 3 0 R
/Resources 24 0 R
/Contents 22 0 R
>>
endobj
22 0 obj
<<
/Length 23 0 R
>>
stream
50.00 757.00 m
0.20 w
0.54 0.65 0.62 rg
562.00 757.00 l
f
S
0.00 0.00 0.00 rg
BT
/F2 1 Tf
16 0 0 16 50.00 742.00 Tm
0.00 0.00 0.00 rg
(
) Tj
ET
q
601 0 0 24 0.00 712.00 cm
/Im3 Do
Q
BT
/F1 1 Tf
16 0 0 16 50.00 718.00 Tm
1.00 1.00 1.00 rg
(Introduction
) Tj
ET
BT
/F2 1 Tf
14 0 0 14 50.00 694.00 Tm
0.00 0.00 0.00 rg
(
) Tj
ET
BT
/F1 1 Tf
14 0 0 14 50.00 673.00 Tm
0.00 0.00 0.00 rg
(²ÞÙÝÐ Ò ÎÖÝÞÙ ŸáÕâØØ
) Tj
ET
BT
/F2 1 Tf
10 0 0 10 50.00 652.00 Tm
0.00 0.00 0.00 rg
(
) Tj
ET
BT
/F1 1 Tf
10 0 0 10 80.00 637.00 Tm
0.00 0.00 0.00 rg
( ÐтПт пПÑÑ‚ целОкПЌ О пПлМПÑтью пПÑвÑщеМ репПрт) Tj
ET
BT
/F1 1 Tf
10 0 0 10 80.00 622.00 Tm
0.00 0.00 0.00 rg
( ажу ÐÑ€ÐºÐ°ÐŽÐžÑ Ð‘Ð°Ð±Ñ‡ÐµÐœÐºÐŸ Оз зПМы бПевых ЎейÑтвОй в) Tj
ET
BT
/F1 1 Tf
10 0 0 10 80.00 607.00 Tm
0.00 0.00 0.00 rg
( ГрузОО. ÐркаЎОй Оз ВлаЎОкавказа ЎПбралÑÑ ÐŽÐŸ Дж) Tj
ET
BT
/F1 1 Tf
10 0 0 10 80.00 592.00 Tm
0.00 0.00 0.00 rg
( авы, затеЌ ЎП ЊхОМвалО, учаÑтвПвал в штурЌе ЗеЌÐ) Tj
ET
BT
/F1 1 Tf
10 0 0 10 80.00 577.00 Tm
0.00 0.00 0.00 rg
( Ÿ-ÐОкПзО, прПÑлеЎПвал Ñ Ð±Ð°Ñ‚Ð°Ð»ÑŒÐŸÐœÐŸÐŒ «ВПÑтПк» в МÐ) Tj
ET
BT
/F1 1 Tf
10 0 0 10 80.00 562.00 Tm
0.00 0.00 0.00 rg
( °Ð¿Ñ€Ð°Ð²Ð»ÐµÐœÐžÐž ГПрО О уже Ма путО туЎа верМулÑÑ ÐœÐ° Ð) Tj
ET
BT
/F1 1 Tf
10 0 0 10 80.00 547.00 Tm
0.00 0.00 0.00 rg
( ²ÐµÑ€Ñ‚Плете Ñ Ñ€Ð°ÐœÐµÐœÑ‹ÐŒÐž.
) Tj
ET
50.00 45.00 m
0.20 w
0.54 0.65 0.62 rg
562.00 45.00 l
f
S
BT
/F1 1 Tf
10 0 0 10 50.00 30.00 Tm
0.54 0.65 0.62 rg
(© 2012 N/A) Tj
ET
BT
/F1 1 Tf
10 0 0 10 492.00 30.00 Tm
0.54 0.65 0.62 rg
[(Page 2 )(of 3 )] TJ
ET
endstream
endobj
23 0 obj
1742
endobj
24 0 obj
<<
/Font << /F1 7 0 R /F2 9 0 R >>
/ProcSet [ /PDF /Text /ImageC /ImageI]
/XObject << /Im3 25 0 R
>>
>>
endobj
25 0 obj
<<
/Subtype /Image
/BitsPerComponent 8
/Filter [/FlateDecode]
/Height 53
/Width 1275
/DecodeParms [<</Predictor 15 /Colors 3 /Columns 1275>>]
/ColorSpace /DeviceRGB
/Length 1896
>>
stream
.........................
endstream
endobj
26 0 obj
<<
/Type /Page
/Parent 3 0 R
/Resources 29 0 R
/Contents 27 0 R
>>
endobj
27 0 obj
<<
/Length 28 0 R
>>
stream
50.00 757.00 m
0.20 w
0.54 0.65 0.62 rg
562.00 757.00 l
f
S
0.00 0.00 0.00 rg
BT
/F2 1 Tf
16 0 0 16 50.00 742.00 Tm
0.00 0.00 0.00 rg
(
) Tj
ET
q
601 0 0 24 0.00 712.00 cm
/Im4 Do
Q
BT
/F1 1 Tf
16 0 0 16 50.00 718.00 Tm
1.00 1.00 1.00 rg
(Appendix A
) Tj
ET
BT
/F1 1 Tf
10 0 0 10 50.00 694.00 Tm
0.54 0.65 0.62 rg
(
) Tj
ET
BT
/F1 1 Tf
10 0 0 10 50.00 679.00 Tm
0.54 0.65 0.62 rg
(
) Tj
ET
BT
/F1 1 Tf
10 0 0 10 50.00 664.00 Tm
0.54 0.65 0.62 rg
(Targets:
) Tj
ET
50.00 45.00 m
0.20 w
0.54 0.65 0.62 rg
562.00 45.00 l
f
S
BT
/F1 1 Tf
10 0 0 10 50.00 30.00 Tm
0.54 0.65 0.62 rg
(© 2012 N/A) Tj
ET
BT
/F1 1 Tf
10 0 0 10 492.00 30.00 Tm
0.54 0.65 0.62 rg
[(Page 3 )(of 3 )] TJ
ET
endstream
endobj
28 0 obj
718
endobj
29 0 obj
<<
/Font << /F1 7 0 R /F2 9 0 R >>
/ProcSet [ /PDF /Text /ImageC /ImageI]
/XObject << /Im4 30 0 R
>>
>>
endobj
30 0 obj
<<
/Subtype /Image
/BitsPerComponent 8
/Filter [/FlateDecode]
/Height 53
/Width 1275
/DecodeParms [<</Predictor 15 /Colors 3 /Columns 1275>>]
/ColorSpace /DeviceRGB
/Length 1896
>>
stream
......................
endstream
endobj
50.00 45.00 m
0.20 w
0.54 0.65 0.62 rg
562.00 45.00 l
f
S
BT
/F1 1 Tf
10 0 0 10 50.00 30.00 Tm
0.54 0.65 0.62 rg
(© 2012 N/A) Tj
ET
BT
/F1 1 Tf
10 0 0 10 492.00 30.00 Tm
0.54 0.65 0.62 rg
[(Page 3 )(of 3 )] TJ
ET
endstream
endobj
31 0 obj
3239
endobj
32 0 obj
<<
/Font << /F1 7 0 R /F2 9 0 R >>
/ProcSet [ /PDF /Text /ImageC /ImageI]
/XObject << >>
>>
endobj
33 0 obj
<<
/Type /Outlines
/Count 2
/First 34 0 R
/Last 36 0 R
>>
endobj
34 0 obj
<<
/Parent 2 0 R
/Dest [21 0 R /XYZ 50 752 0.000]
/Title <feff0049006e00740072006f00640075006300740069006f006e>
/Next 36 0 R
/First 35 0 R
/Last 35 0 R
/Count -1
>>
endobj
35 0 obj
<<
/Parent 34 0 R
/Dest [21 0 R /XYZ 50 704 0.000]
/Title <feff0412043e0439043d0430002004320020042e0436043d043e04390020041e0441 0435044204380438>
>>
endobj
36 0 obj
<<
/Parent 2 0 R
/Dest [26 0 R /XYZ 50 752 0.000]
/Title <feff0041007000700065006e00640069007800200041>
/Prev 34 0 R
>>
endobj
2 0 obj
<<
/Type /Catalog
/Pages 3 0 R
/Outlines 33 0 R
/PageMode /UseOutlines
>>
endobj
3 0 obj
<<
/Type /Pages
/Count 4
/MediaBox [ 0 0 612 792 ]
/Kids [ 11 0 R 16 0 R 21 0 R 26 0 R ]
>>
endobj
xref
0 37
0000000000 65535 f
0000000009 00000 n
0000058067 00000 n
0000058156 00000 n
0000000000 00000 f
0000000000 00000 f
0000000115 00000 n
0000000212 00000 n
0000000658 00000 n
0000000911 00000 n
0000001196 00000 n
0000001457 00000 n
0000001540 00000 n
0000002432 00000 n
0000002452 00000 n
0000002578 00000 n
0000046250 00000 n
0000046333 00000 n
0000047606 00000 n
0000047627 00000 n
0000047753 00000 n
0000049864 00000 n
0000049947 00000 n
0000051743 00000 n
0000051764 00000 n
0000051890 00000 n
0000054001 00000 n
0000054084 00000 n
0000054856 00000 n
0000054876 00000 n
0000055002 00000 n
0000057377 00000 n
0000057398 00000 n
0000057512 00000 n
0000057586 00000 n
0000057767 00000 n
0000057931 00000 n
trailer
<<
/Size 36
/Root 2 0 R
/Info 1 0 R
>>
startxref
58263
%%EOF
North America
Europe, Middle East and Africa
Asia Pacific