hpdf 2.0.8-mswin32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. data/History +57 -0
  2. data/License +25 -0
  3. data/README +136 -0
  4. data/docs/annotation_handling.html +503 -0
  5. data/docs/api.css +115 -0
  6. data/docs/api_reference.html +112 -0
  7. data/docs/bindings.html +242 -0
  8. data/docs/compile_your_program.html +365 -0
  9. data/docs/default.css +115 -0
  10. data/docs/destination_handling.html +620 -0
  11. data/docs/document_handling.html +4751 -0
  12. data/docs/documentation.html +110 -0
  13. data/docs/encoder_handling.html +428 -0
  14. data/docs/error_handling.html +1609 -0
  15. data/docs/examples.html +702 -0
  16. data/docs/ext_gstate.html +407 -0
  17. data/docs/font_handling.html +669 -0
  18. data/docs/fonts.html +978 -0
  19. data/docs/graphics.html +1210 -0
  20. data/docs/handles.html +204 -0
  21. data/docs/how_to_use.html +371 -0
  22. data/docs/image/Thumbs.db +0 -0
  23. data/docs/image/character_map.png +0 -0
  24. data/docs/image/encoding_list.png +0 -0
  25. data/docs/image/extgtate.png +0 -0
  26. data/docs/image/figure1.png +0 -0
  27. data/docs/image/figure10.png +0 -0
  28. data/docs/image/figure11.png +0 -0
  29. data/docs/image/figure12.png +0 -0
  30. data/docs/image/figure13.png +0 -0
  31. data/docs/image/figure14.png +0 -0
  32. data/docs/image/figure15.png +0 -0
  33. data/docs/image/figure16.png +0 -0
  34. data/docs/image/figure17.png +0 -0
  35. data/docs/image/figure18.png +0 -0
  36. data/docs/image/figure19.png +0 -0
  37. data/docs/image/figure2.png +0 -0
  38. data/docs/image/figure20.png +0 -0
  39. data/docs/image/figure21.png +0 -0
  40. data/docs/image/figure22.png +0 -0
  41. data/docs/image/figure23.png +0 -0
  42. data/docs/image/figure24.png +0 -0
  43. data/docs/image/figure25.png +0 -0
  44. data/docs/image/figure26.png +0 -0
  45. data/docs/image/figure27.png +0 -0
  46. data/docs/image/figure28.png +0 -0
  47. data/docs/image/figure3.png +0 -0
  48. data/docs/image/figure4.png +0 -0
  49. data/docs/image/figure5.png +0 -0
  50. data/docs/image/figure6.png +0 -0
  51. data/docs/image/figure7.png +0 -0
  52. data/docs/image/figure8.png +0 -0
  53. data/docs/image/figure9.png +0 -0
  54. data/docs/image/font_demo.png +0 -0
  55. data/docs/image/harulogo.png +0 -0
  56. data/docs/image/image_demo.png +0 -0
  57. data/docs/image/jpfont_demo.png +0 -0
  58. data/docs/image/line_demo.png +0 -0
  59. data/docs/image/png_demo.png +0 -0
  60. data/docs/image/text_annot.png +0 -0
  61. data/docs/image/text_demo.png +0 -0
  62. data/docs/image/text_demo2.png +0 -0
  63. data/docs/image/tt_font.png +0 -0
  64. data/docs/image_handling.html +505 -0
  65. data/docs/index.html +305 -0
  66. data/docs/install.html +243 -0
  67. data/docs/outline_handling.html +229 -0
  68. data/docs/page_handling.html +2647 -0
  69. data/docs/page_operator.html +2640 -0
  70. data/docs/useful_links.html +203 -0
  71. data/examples/arc_demo.rb +82 -0
  72. data/examples/demo.rb +91 -0
  73. data/examples/encryption.rb +41 -0
  74. data/examples/ext_gstater_demo.rb +171 -0
  75. data/examples/font_demo.rb +67 -0
  76. data/examples/jpfont_demo.rb +122 -0
  77. data/examples/line_demo.rb +301 -0
  78. data/examples/slide_show_demo.rb +139 -0
  79. data/examples/text_demo2.rb +189 -0
  80. data/examples/ttfont_demo.rb +106 -0
  81. data/lib/hpdf.so +0 -0
  82. data/tests/arc_demo.rb +82 -0
  83. data/tests/demo.rb +91 -0
  84. data/tests/encryption.rb +41 -0
  85. data/tests/ext_gstater_demo.rb +171 -0
  86. data/tests/font_demo.rb +67 -0
  87. data/tests/line_demo.rb +301 -0
  88. data/tests/slide_show_demo.rb +139 -0
  89. data/tests/test_all_examples.rb +31 -0
  90. data/tests/text_demo2.rb +189 -0
  91. metadata +137 -0
data/docs/fonts.html ADDED
@@ -0,0 +1,978 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
2
+ <html lang="en">
3
+ <head>
4
+ <title>Haru Free PDF Library</title>
5
+ <meta http-equiv="Content-Type"
6
+ content="text/html; charset=iso-8859-1">
7
+ <link href="default.css" type="text/css" rel="stylesheet">
8
+ </head>
9
+ <body>
10
+ <div id="headcontainer">
11
+ <div class="head"><img alt="Haru Free PDF Library"
12
+ src="image/harulogo.png" style="width: 413px; height: 40px;"></div>
13
+ </div>
14
+ <div id="barcontainer">
15
+ <div class="buildbar"><a href="index.html">home</a> | <a
16
+ href="http://sourceforge.net/project/showfiles.php?group_id=83044">download</a>
17
+ |
18
+ <a href="documentation.html">documentation</a> | <a
19
+ href="examples.html">examples </a>| <a
20
+ href="http://sourceforge.net/projects/libharu/">sourceforge</a> |
21
+ <a href="http://sourceforge.net/forum/?group_id=83044">forums</a><br>
22
+ </div>
23
+ </div>
24
+ <div id="container">
25
+ <div id="mainpage">
26
+ <div id="ccol">
27
+ <h2>Fonts and Encodings<br>
28
+ </h2>
29
+ <h3><a name="The_type_of_fonts_"></a>The type of fonts<br>
30
+ </h3>
31
+ <div class="bodytext1">There are three kind of fonts that is available
32
+ in Haru.<br>
33
+ <br>
34
+ <table style="width: 100%; text-align: left;" border="1" cellpadding="1"
35
+ cellspacing="1">
36
+ <tbody>
37
+ <tr>
38
+ <td
39
+ style="vertical-align: top; width: 20px; text-align: right; background-color: rgb(204, 204, 204);"><br>
40
+ </td>
41
+ <td
42
+ style="vertical-align: top; background-color: rgb(204, 204, 204); width: 100px;"><span
43
+ style="font-weight: bold;">Type of Font</span><br>
44
+ </td>
45
+ <td
46
+ style="vertical-align: top; background-color: rgb(204, 204, 204);"><span
47
+ style="font-weight: bold;">Description</span><br>
48
+ </td>
49
+ </tr>
50
+ <tr>
51
+ <td style="vertical-align: top; width: 20px; text-align: right;">1<br>
52
+ </td>
53
+ <td style="vertical-align: top; width: 100px;">Base14 Font<br>
54
+ </td>
55
+ <td style="vertical-align: top;">It is buildin font of PDF. This
56
+ font can be used for all viewer applications.<br>
57
+ </td>
58
+ </tr>
59
+ <tr>
60
+ <td style="vertical-align: top; width: 20px; text-align: right;">2<br>
61
+ </td>
62
+ <td style="vertical-align: top; width: 100px;">Type1 Font<br>
63
+ </td>
64
+ <td style="vertical-align: top;">One of font formats used by
65
+ PostScript.<br>
66
+ </td>
67
+ </tr>
68
+ <tr>
69
+ <td style="vertical-align: top; width: 20px; text-align: right;">3</td>
70
+ <td style="vertical-align: top; width: 100px;">TrueType Font<br>
71
+ </td>
72
+ <td style="vertical-align: top;">Outline font fotmat widely used.
73
+ <br>
74
+ </td>
75
+ </tr>
76
+ <tr>
77
+ <td style="vertical-align: top; text-align: right;">4<br>
78
+ </td>
79
+ <td style="vertical-align: top; width: 100px;">CID Font<br>
80
+ </td>
81
+ <td style="vertical-align: top;">Font format for multi byte
82
+ character developed by Adobe. </td>
83
+ </tr>
84
+ </tbody>
85
+ </table>
86
+ <br>
87
+ The application invokes <a href="document_handling.html#HPDF_GetFont">HPDF_GetFont()
88
+ </a>to get font-hangle. Except
89
+ base14-fonts, an application have <br>
90
+ to invoke the following functions to load font before invoking <a
91
+ href="document_handling.html#HPDF_GetFont">HPDF_GetFont() </a>.<br>
92
+ <br>
93
+ <span style="font-weight: bold;">The font loading functions</span>
94
+ <ul>
95
+ <li><a href="document_handling.html#HPDF_LoadType1FontFromFile">HPDF_LoadType1FontFromFile()</a></li>
96
+ <li><a href="document_handling.html#HPDF_LoadTTFontFromFile">HPDF_LoadTTFontFromFile()</a></li>
97
+ <li><a href="document_handling.html#HPDF_LoadTTFontFromFile2">HPDF_LoadTTFontFromFile2()</a></li>
98
+ <li><a href="document_handling.html#HPDF_UseCNSFonts">HPDF_UseCNSFonts()</a></li>
99
+ <li><a href="document_handling.html#HPDF_UseCNTFonts">HPDF_UseCNTFonts()</a></li>
100
+ <li><a href="document_handling.html#HPDF_UseJPFonts">HPDF_UseJPFonts()</a></li>
101
+ <li><a href="document_handling.html#HPDF_UseKRFonts">HPDF_UseKRFonts()</a><br>
102
+ </li>
103
+ </ul>
104
+ &nbsp;<br>
105
+ </div>
106
+ <h3><a name="Base14_Font_"></a>Base14 Font<br>
107
+ </h3>
108
+ <div class="bodytext1">Base14 fonts are built-in font of PDF, and all
109
+ the Viewer applications can display these fonts. An application can get
110
+ a font-handle of a base14 font any time by invoking <a
111
+ href="document_handling.html#HPDF_GetFont">HPDF_GetFont() </a>. <br>
112
+ The size of pdf files which use base14 fonts become smaller than those
113
+ which use other type of fonts. Moreover, a processing that creates the
114
+ PDF file is fast because of that there is no overhead that loads the
115
+ font.<br>
116
+ However, base14 fonts are only available to display latin1 character
117
+ set. To use other character set, an application have to use other type
118
+ of font.<br>
119
+ <br>
120
+ <span style="font-weight: bold;">The Base14 Fonts</span>
121
+ <ul>
122
+ <li>Courie</li>
123
+ <li>Courier-Bold</li>
124
+ <li>Courier-Oblique</li>
125
+ <li>Courier-BoldOblique</li>
126
+ <li>Helvetica</li>
127
+ <li>Helvetica-Bold</li>
128
+ <li>Helvetica-Oblique</li>
129
+ <li>Helvetica-BoldOblique</li>
130
+ <li>Times-Roman</li>
131
+ <li>Times-Bold</li>
132
+ <li>Times-Italic</li>
133
+ <li>Times-BoldItalic</li>
134
+ <li>Symbol</li>
135
+ <li>ZapfDingbats<br>
136
+ </li>
137
+ </ul>
138
+ </div>
139
+ <h3><a name="Type1_Font_"></a>Type1 Font<br>
140
+ </h3>
141
+ <div class="bodytext1">Type1 font is a fotmat of outline fonts
142
+ developed by Adobe. An AFM file is necessary to use an external type1
143
+ font on Haru.<br>
144
+ When an application uses an external type1 font, an application has to
145
+ invoke <a href="document_handling.html#HPDF_LoadType1FontFromFile">HPDF_LoadType1FontFromFile()</a>
146
+ before
147
+ invoking <a href="document_handling.html#HPDF_GetFont">HPDF_GetFont() </a>.<br>
148
+ The return value of HPDF_LoadType1FontFromFile() is used as font-name
149
+ parameter of <a href="document_handling.html#HPDF_GetFont">HPDF_GetFont()
150
+ </a>.<br>
151
+ If a PFA/PFB file is specified at invoking <a
152
+ href="document_handling.html#HPDF_LoadType1FontFromFile">HPDF_LoadType1FontFromFile()</a>,
153
+ the glyf data of the font is embedded to
154
+ the PDF file. Otherwise, only metrics data in AFM file is embedded.<br>
155
+ <br>
156
+ <div class="bodycode"><br>
157
+ &nbsp;font_name = HPDF_LoadType1FontFromFile (pdf, "a010013l.afm",
158
+ "a010013l.pfb");<br>
159
+ &nbsp;hfont = HPDF_GetFont (pdf, font_name, "CP1250");<br>
160
+ <br>
161
+ &nbsp;HPDF_Page_SetFontAndSize (page, hfont, 10.5);<br>
162
+ <br>
163
+ </div>
164
+ </div>
165
+ <br>
166
+ <h3><a name="TrueType_Font_"></a>TrueType Font<br>
167
+ </h3>
168
+ <div class="bodytext1">Haru can use TrueType font. There are two types
169
+ of format of truetype font.<br>
170
+ The first format whose extension is ".ttf" includes only one font-data
171
+ in the file. The function <a
172
+ href="document_handling.html#HPDF_LoadTTFontFromFile">HPDF_LoadTTFontFromFile()</a>
173
+ is available to
174
+ load this type of font.<br>
175
+ The second format whose extension is ".ttc" includes&nbsp; multiple
176
+ font-data
177
+ in the file. The function HPDF_LoadTTFontFromFile2() is available to
178
+ load this type of font. <a
179
+ href="document_handling.html#HPDF_LoadTTFontFromFile2">HPDF_LoadTTFontFromFile2()</a>
180
+ has a parameter which
181
+ is used to specify the index of the font to load.<br>
182
+ <br>
183
+ If the parameter "embedding" is set to HPDF_TRUE when invoking <a
184
+ href="document_handling.html#HPDF_LoadTTFontFromFile">HPDF_LoadTTFontFromFile()</a>
185
+ or <a href="document_handling.html#HPDF_LoadTTFontFromFile2">HPDF_LoadTTFontFromFile2()</a>,
186
+ the subset of
187
+ a font is embeded into a PDF file. If not, only the marix data is
188
+ stored into a PDF file. In this case a viewer application may use an
189
+ alternative font if it cannot find font.<br>
190
+ <br>
191
+ <div class="bodycode"><br>
192
+ &nbsp;font_name = HPDF_LoadTTFontFromFile (pdf,
193
+ &#8221;/usr/local/fonts/arial.ttf&#8221;, HPDF_TRUE);<br>
194
+ &nbsp;hfont = HPDF_GetFont (pdf, font_name, "CP1250");<br>
195
+ <br>
196
+ &nbsp;HPDF_Page_SetFontAndSize (page, hfont, 10.5);<br>
197
+ <br>
198
+ </div>
199
+ </div>
200
+ <br>
201
+ <div class="bodytext2">NOTE:
202
+ <br>
203
+ Haru can use only TrueType fonts which has cmap of unicode and
204
+ following tables.<br>
205
+ <br>
206
+ "OS/2", "cmap", "cvt ", "fpgm", "glyf", "head", "hhea", "hmtx", "loca",
207
+ "maxp", "name", "post", "prep"<br>
208
+ <br>
209
+ </div>
210
+ <br>
211
+ <h3>CID Font<br>
212
+ </h3>
213
+ <div class="bodytext1">The CIDFont is a font for multi byte character
214
+ developed by Adobe.<br>
215
+ Two simplified Chinese fonts, one traditional Chinese fonts, four
216
+ Japanese fonts, and four Korean fonts are available on Haru.<br>
217
+ An application have to invoke the following functions once before using
218
+ CID fonts.<br>
219
+ <br>
220
+ <table style="width: 100%; text-align: left;" border="1" cellpadding="2"
221
+ cellspacing="2">
222
+ <tbody>
223
+ <tr>
224
+ <td
225
+ style="vertical-align: top; text-align: right; width: 24px; background-color: rgb(204, 204, 204);"><br>
226
+ </td>
227
+ <td
228
+ style="vertical-align: top; background-color: rgb(204, 204, 204); width: 140px; font-weight: bold;">Function
229
+ Name</td>
230
+ <td
231
+ style="vertical-align: top; background-color: rgb(204, 204, 204); font-weight: bold;">Description<br>
232
+ </td>
233
+ </tr>
234
+ <tr>
235
+ <td style="vertical-align: top; text-align: right; width: 24px;">1<br>
236
+ </td>
237
+ <td style="vertical-align: top; width: 140px;"><a
238
+ href="document_handling.html#HPDF_UseCNSFonts">HPDF_UseCNSFonts()</a><br>
239
+ </td>
240
+ <td style="vertical-align: top;">It makes simplified Chinese
241
+ fonts(SimSun,SimHei) to available.<br>
242
+ </td>
243
+ </tr>
244
+ <tr>
245
+ <td style="vertical-align: top; text-align: right; width: 24px;">2<br>
246
+ </td>
247
+ <td style="vertical-align: top; width: 140px;"><a
248
+ href="document_handling.html#HPDF_UseCNTFonts">HPDF_UseCNTFonts()</a><br>
249
+ </td>
250
+ <td style="vertical-align: top;">It makes traditional Chinese
251
+ fonts(MingLiU) to available.</td>
252
+ </tr>
253
+ <tr>
254
+ <td style="vertical-align: top; text-align: right; width: 24px;">3<br>
255
+ </td>
256
+ <td style="vertical-align: top; width: 140px;"><a
257
+ href="document_handling.html#HPDF_UseJPFonts">HPDF_UseJPFonts()</a><br>
258
+ </td>
259
+ <td style="vertical-align: top;">It makes Japanese
260
+ fonts(MS-Mincyo,MS-Gothic,MS-PMincyo,MS-PGothic) to available.</td>
261
+ </tr>
262
+ <tr>
263
+ <td style="vertical-align: top; text-align: right; width: 24px;">4<br>
264
+ </td>
265
+ <td style="vertical-align: top; width: 140px;"><a
266
+ href="document_handling.html#HPDF_UseKRFonts">HPDF_UseKRFonts()</a><br>
267
+ </td>
268
+ <td style="vertical-align: top;">It makes Korean fonts
269
+ (Batang,Dotum,BatangChe,DotumChe) to available.</td>
270
+ </tr>
271
+ </tbody>
272
+ </table>
273
+ <br>
274
+ <br>
275
+ <div class="bodycode"><br>
276
+ &nbsp;HPDF_UseJPFonts (pdf);<br>
277
+ &nbsp;HPDF_UseJPEncodings (pdf);<br>
278
+ <br>
279
+ &nbsp;hfont = HPDF_GetFont (pdf, "MS-Mincyo", "90ms-RKSJ-H");<br>
280
+ <br>
281
+ &nbsp;HPDF_Page_SetFontAndSize (page, hfont, 10.5);<br>
282
+ <br>
283
+ </div>
284
+ </div>
285
+ <br>
286
+ <h3><a name="The_type_of_encodings_"></a>The encodings for single-byte
287
+ character set
288
+ </h3>
289
+ <div class="bodytext1">In HPDF, the following character sets for
290
+ single-byte character set are
291
+ available.<br>
292
+ An application can get an encoding handle by using <a
293
+ href="document_handling.html#HPDF_GetEncoder">HPDF_GetEncoder()</a>;<br>
294
+ <br>
295
+ <table style="width: 100%; text-align: left;" border="1" cellpadding="1"
296
+ cellspacing="1">
297
+ <tbody>
298
+ <tr>
299
+ <td
300
+ style="vertical-align: top; width: 20px; text-align: right; background-color: rgb(204, 204, 204);"><br>
301
+ </td>
302
+ <td
303
+ style="vertical-align: top; background-color: rgb(204, 204, 204); width: 140px; font-weight: bold;">Type
304
+ of Font<br>
305
+ </td>
306
+ <td
307
+ style="vertical-align: top; background-color: rgb(204, 204, 204);"><span
308
+ style="font-weight: bold;">Description</span><br>
309
+ </td>
310
+ </tr>
311
+ <tr>
312
+ <td style="vertical-align: top; width: 20px; text-align: right;">1<br>
313
+ </td>
314
+ <td style="vertical-align: top; width: 140px;">StandardEncoding<br>
315
+ </td>
316
+ <td style="vertical-align: top;">It is the default encoding of PDF<br>
317
+ </td>
318
+ </tr>
319
+ <tr>
320
+ <td style="vertical-align: top; width: 20px; text-align: right;">2<br>
321
+ </td>
322
+ <td style="vertical-align: top; width: 140px;">MacRomanEncoding<br>
323
+ </td>
324
+ <td style="vertical-align: top;">The standard encoding of Mac OS<br>
325
+ </td>
326
+ </tr>
327
+ <tr>
328
+ <td style="vertical-align: top; width: 20px; text-align: right;">3</td>
329
+ <td style="vertical-align: top; width: 140px;">WinAnsiEncoding<br>
330
+ </td>
331
+ <td style="vertical-align: top;">The standerd encoding of Windwos.<br>
332
+ </td>
333
+ </tr>
334
+ <tr>
335
+ <td style="vertical-align: top; text-align: right;">4<br>
336
+ </td>
337
+ <td style="vertical-align: top; width: 140px;">FontSpecific<br>
338
+ </td>
339
+ <td style="vertical-align: top;">Use the built-in encoding of a
340
+ font.<br>
341
+ </td>
342
+ </tr>
343
+ <tr>
344
+ <td style="vertical-align: top; text-align: right;">5<br>
345
+ </td>
346
+ <td style="vertical-align: top; width: 140px;">ISO8859-2<br>
347
+ </td>
348
+ <td style="vertical-align: top;">Latin Alphabet No.2<br>
349
+ </td>
350
+ </tr>
351
+ <tr>
352
+ <td style="vertical-align: top; text-align: right;">6<br>
353
+ </td>
354
+ <td style="vertical-align: top; width: 140px;">ISO8859-3</td>
355
+ <td style="vertical-align: top;">Latin Alphabet No.3<br>
356
+ </td>
357
+ </tr>
358
+ <tr>
359
+ <td style="vertical-align: top; text-align: right;">7<br>
360
+ </td>
361
+ <td style="vertical-align: top; width: 140px;">ISO8859-4</td>
362
+ <td style="vertical-align: top;">Latin Alphabet No.4<br>
363
+ </td>
364
+ </tr>
365
+ <tr>
366
+ <td style="vertical-align: top; text-align: right;">8<br>
367
+ </td>
368
+ <td style="vertical-align: top; width: 140px;">ISO8859-5</td>
369
+ <td style="vertical-align: top;">Latin Cyrillic Alphabet<br>
370
+ </td>
371
+ </tr>
372
+ <tr>
373
+ <td style="vertical-align: top; text-align: right;">9<br>
374
+ </td>
375
+ <td style="vertical-align: top; width: 140px;">ISO8859-6</td>
376
+ <td style="vertical-align: top;">Latin Arabic Alphabet<br>
377
+ </td>
378
+ </tr>
379
+ <tr>
380
+ <td style="vertical-align: top; text-align: right;">10<br>
381
+ </td>
382
+ <td style="vertical-align: top; width: 140px;">ISO8859-7</td>
383
+ <td style="vertical-align: top;">Latin Greek Alphabet<br>
384
+ </td>
385
+ </tr>
386
+ <tr>
387
+ <td style="vertical-align: top; text-align: right;">11<br>
388
+ </td>
389
+ <td style="vertical-align: top; width: 140px;">ISO8859-8</td>
390
+ <td style="vertical-align: top;">Latin Hebrew Alphabet<br>
391
+ </td>
392
+ </tr>
393
+ <tr>
394
+ <td style="vertical-align: top; text-align: right;">12<br>
395
+ </td>
396
+ <td style="vertical-align: top; width: 140px;">ISO8859-9</td>
397
+ <td style="vertical-align: top;">Latin Alphabet No. 5<br>
398
+ </td>
399
+ </tr>
400
+ <tr>
401
+ <td style="vertical-align: top; text-align: right;">13<br>
402
+ </td>
403
+ <td style="vertical-align: top; width: 140px;">ISO8859-10</td>
404
+ <td style="vertical-align: top;">Latin Alphabet No. 6<br>
405
+ </td>
406
+ </tr>
407
+ <tr>
408
+ <td style="vertical-align: top; text-align: right;">14<br>
409
+ </td>
410
+ <td style="vertical-align: top; width: 140px;">ISO8859-11</td>
411
+ <td style="vertical-align: top;">Thai, TIS 620-2569 character set<br>
412
+ </td>
413
+ </tr>
414
+ <tr>
415
+ <td style="vertical-align: top; text-align: right;">15<br>
416
+ </td>
417
+ <td style="vertical-align: top; width: 140px;">ISO8859-13</td>
418
+ <td style="vertical-align: top;">Latin Alphabet No. 7<br>
419
+ </td>
420
+ </tr>
421
+ <tr>
422
+ <td style="vertical-align: top; text-align: right;">16<br>
423
+ </td>
424
+ <td style="vertical-align: top; width: 140px;">ISO8859-14</td>
425
+ <td style="vertical-align: top;">Latin Alphabet No. 8<br>
426
+ </td>
427
+ </tr>
428
+ <tr>
429
+ <td style="vertical-align: top; text-align: right;">17<br>
430
+ </td>
431
+ <td style="vertical-align: top; width: 140px;">ISO8859-15</td>
432
+ <td style="vertical-align: top;">Latin Alphabet No. 9<br>
433
+ </td>
434
+ </tr>
435
+ <tr>
436
+ <td style="vertical-align: top; text-align: right;">18<br>
437
+ </td>
438
+ <td style="vertical-align: top; width: 140px;">ISO8859-16</td>
439
+ <td style="vertical-align: top;">Latin Alphabet No. 10<br>
440
+ </td>
441
+ </tr>
442
+ <tr>
443
+ <td style="vertical-align: top; text-align: right;">19<br>
444
+ </td>
445
+ <td style="vertical-align: top; width: 140px;">CP1250<br>
446
+ </td>
447
+ <td style="vertical-align: top;">Microsoft Windows Codepage 1250
448
+ (EE)<br>
449
+ </td>
450
+ </tr>
451
+ <tr>
452
+ <td style="vertical-align: top; text-align: right;">20<br>
453
+ </td>
454
+ <td style="vertical-align: top; width: 140px;">CP1251</td>
455
+ <td style="vertical-align: top;">Microsoft Windows Codepage 1251
456
+ (Cyrl)<br>
457
+ </td>
458
+ </tr>
459
+ <tr>
460
+ <td style="vertical-align: top; text-align: right;">21<br>
461
+ </td>
462
+ <td style="vertical-align: top; width: 140px;">CP1252</td>
463
+ <td style="vertical-align: top;">Microsoft Windows Codepage 1252
464
+ (ANSI)<br>
465
+ </td>
466
+ </tr>
467
+ <tr>
468
+ <td style="vertical-align: top; text-align: right;">22<br>
469
+ </td>
470
+ <td style="vertical-align: top; width: 140px;">CP1253</td>
471
+ <td style="vertical-align: top;">Microsoft Windows Codepage 1253
472
+ (Greek)<br>
473
+ </td>
474
+ </tr>
475
+ <tr>
476
+ <td style="vertical-align: top; text-align: right;">23<br>
477
+ </td>
478
+ <td style="vertical-align: top; width: 140px;">CP1254</td>
479
+ <td style="vertical-align: top;">Microsoft Windows Codepage 1254
480
+ (Turk)<br>
481
+ </td>
482
+ </tr>
483
+ <tr>
484
+ <td style="vertical-align: top; text-align: right;">24<br>
485
+ </td>
486
+ <td style="vertical-align: top; width: 140px;">CP1255</td>
487
+ <td style="vertical-align: top;">Microsoft Windows Codepage 1255
488
+ (Hebr)<br>
489
+ </td>
490
+ </tr>
491
+ <tr>
492
+ <td style="vertical-align: top; text-align: right;">25<br>
493
+ </td>
494
+ <td style="vertical-align: top; width: 140px;">CP1256</td>
495
+ <td style="vertical-align: top;">Microsoft Windows Codepage 1256
496
+ (Arab<br>
497
+ </td>
498
+ </tr>
499
+ <tr>
500
+ <td style="vertical-align: top; text-align: right;">26<br>
501
+ </td>
502
+ <td style="vertical-align: top; width: 140px;">CP1257</td>
503
+ <td style="vertical-align: top;">Microsoft Windows Codepage 1257
504
+ (BaltRim)<br>
505
+ </td>
506
+ </tr>
507
+ <tr>
508
+ <td style="vertical-align: top; text-align: right;">27<br>
509
+ </td>
510
+ <td style="vertical-align: top; width: 140px;">CP1258</td>
511
+ <td style="vertical-align: top;">Microsoft Windows Codepage 1258
512
+ (Viet)<br>
513
+ </td>
514
+ </tr>
515
+ <tr>
516
+ <td style="vertical-align: top; text-align: right;">28<br>
517
+ </td>
518
+ <td style="vertical-align: top; width: 140px;">KOI8-R<br>
519
+ </td>
520
+ <td style="vertical-align: top;">Russian Net Character Set<br>
521
+ </td>
522
+ </tr>
523
+ </tbody>
524
+ </table>
525
+ <br>
526
+ <br>
527
+ </div>
528
+ <h3><a name="The_encodings_for_multi-byte_character"></a>The encodings
529
+ for multi-byte
530
+ character set
531
+ </h3>
532
+ <div class="bodytext1">
533
+ In HPDF, the following character sets for multi-byte character set are
534
+ available.<br>
535
+ <br>
536
+ <table style="width: 100%; text-align: left;" border="1" cellpadding="1"
537
+ cellspacing="1">
538
+ <tbody>
539
+ <tr>
540
+ <td
541
+ style="vertical-align: top; width: 20px; text-align: right; background-color: rgb(204, 204, 204);"><br>
542
+ </td>
543
+ <td
544
+ style="vertical-align: top; background-color: rgb(204, 204, 204); width: 150px; font-weight: bold;">Type
545
+ of Encodingss<br>
546
+ </td>
547
+ <td
548
+ style="vertical-align: top; background-color: rgb(204, 204, 204); font-weight: bold;">Description<br>
549
+ </td>
550
+ </tr>
551
+ <tr>
552
+ <td style="vertical-align: top; text-align: right;">1<br>
553
+ </td>
554
+ <td style="vertical-align: top; width: 150px;">GB-EUC-H<br>
555
+ </td>
556
+ <td style="vertical-align: top;">EUC-CN encoding<br>
557
+ </td>
558
+ </tr>
559
+ <tr>
560
+ <td style="vertical-align: top; text-align: right;">2<br>
561
+ </td>
562
+ <td style="vertical-align: top; width: 150px;">GB-EUC-V<br>
563
+ </td>
564
+ <td style="vertical-align: top;">Vertical writing virsion of
565
+ GB-EUC-H<br>
566
+ </td>
567
+ </tr>
568
+ <tr>
569
+ <td style="vertical-align: top; text-align: right;">3<br>
570
+ </td>
571
+ <td style="vertical-align: top; width: 150px;">GBK-EUC-H<br>
572
+ </td>
573
+ <td style="vertical-align: top;">Microsoft Code Page 936
574
+ (lfCharSet 0x86) GBK encoding<br>
575
+ </td>
576
+ </tr>
577
+ <tr>
578
+ <td style="vertical-align: top; text-align: right;">4<br>
579
+ </td>
580
+ <td style="vertical-align: top; width: 150px;">GBK-EUC-V<br>
581
+ </td>
582
+ <td style="vertical-align: top;">Vertical writing virsion of
583
+ GBK-EUC-H<br>
584
+ </td>
585
+ </tr>
586
+ <tr>
587
+ <td style="vertical-align: top; text-align: right;">5<br>
588
+ </td>
589
+ <td style="vertical-align: top; width: 150px;">ETen-B5-H<br>
590
+ </td>
591
+ <td style="vertical-align: top;">Microsoft Code Page 950
592
+ (lfCharSet 0x88) Big Five character set with ETen extensions<br>
593
+ </td>
594
+ </tr>
595
+ <tr>
596
+ <td style="vertical-align: top; text-align: right;">6<br>
597
+ </td>
598
+ <td style="vertical-align: top; width: 150px;">ETen-B5-V<br>
599
+ </td>
600
+ <td style="vertical-align: top;">Vertical writing virsion of
601
+ ETen-B5-H<br>
602
+ </td>
603
+ </tr>
604
+ <tr>
605
+ <td style="vertical-align: top; text-align: right;">7<br>
606
+ </td>
607
+ <td style="vertical-align: top; width: 150px;">90ms-RKSJ-H<br>
608
+ </td>
609
+ <td style="vertical-align: top;">Microsoft Code Page 932, JIS X
610
+ 0208 character<br>
611
+ </td>
612
+ </tr>
613
+ <tr>
614
+ <td style="vertical-align: top; text-align: right;">8<br>
615
+ </td>
616
+ <td style="vertical-align: top; width: 150px;">90ms-RKSJ-V<br>
617
+ </td>
618
+ <td style="vertical-align: top;">Vertical writing virsion of
619
+ 90ms-RKSJ-V</td>
620
+ </tr>
621
+ <tr>
622
+ <td style="vertical-align: top; text-align: right;">9<br>
623
+ </td>
624
+ <td style="vertical-align: top; width: 150px;">90msp-RKSJ-H<br>
625
+ </td>
626
+ <td style="vertical-align: top;">Microsoft Code Page 932, JIS X
627
+ 0208 character (proportional)<br>
628
+ </td>
629
+ </tr>
630
+ <tr>
631
+ <td style="vertical-align: top; text-align: right;">10<br>
632
+ </td>
633
+ <td style="vertical-align: top; width: 150px;">EUC-H<br>
634
+ </td>
635
+ <td style="vertical-align: top;">JIS X 0208 character set, EUC-JP
636
+ encoding<br>
637
+ </td>
638
+ </tr>
639
+ <tr>
640
+ <td style="vertical-align: top; text-align: right;">11<br>
641
+ </td>
642
+ <td style="vertical-align: top; width: 150px;">EUC-V<br>
643
+ </td>
644
+ <td style="vertical-align: top;">Vertical writing virsion of EUC-H</td>
645
+ </tr>
646
+ <tr>
647
+ <td style="vertical-align: top; text-align: right;">12<br>
648
+ </td>
649
+ <td style="vertical-align: top; width: 150px;">KSC-EUC-H<br>
650
+ </td>
651
+ <td style="vertical-align: top;">KS X 1001:1992 character set,
652
+ EUC-KR encoding<br>
653
+ </td>
654
+ </tr>
655
+ <tr>
656
+ <td style="vertical-align: top; text-align: right;">13<br>
657
+ </td>
658
+ <td style="vertical-align: top; width: 150px;">KSC-EUC-V<br>
659
+ </td>
660
+ <td style="vertical-align: top;">Vertical writing virsion of
661
+ KSC-EUC-V</td>
662
+ </tr>
663
+ <tr>
664
+ <td style="vertical-align: top; text-align: right;">14<br>
665
+ </td>
666
+ <td style="vertical-align: top; width: 150px;">KSCms-UHC-H<br>
667
+ </td>
668
+ <td style="vertical-align: top;">Microsoft Code Page 949
669
+ (lfCharSet 0x81), KS X 1001:1992 character set plus 8822 additional
670
+ hangul, Unified Hangul Code (UHC) encoding (proportional)<br>
671
+ </td>
672
+ </tr>
673
+ <tr>
674
+ <td style="vertical-align: top; text-align: right;">15<br>
675
+ </td>
676
+ <td style="vertical-align: top; width: 150px;">KSCms-UHC-HW-H<br>
677
+ </td>
678
+ <td style="vertical-align: top;">Microsoft Code Page 949
679
+ (lfCharSet 0x81), KS X 1001:1992 character set plus 8822 additional
680
+ hangul, Unified Hangul Code (UHC) encoding (fixed width)<br>
681
+ </td>
682
+ </tr>
683
+ <tr>
684
+ <td style="vertical-align: top; text-align: right;">16<br>
685
+ </td>
686
+ <td style="vertical-align: top; width: 150px;">KSCms-UHC-HW-V<br>
687
+ </td>
688
+ <td style="vertical-align: top;">Vertical writing virsion of
689
+ KSCms-UHC-HW-H</td>
690
+ </tr>
691
+ </tbody>
692
+ </table>
693
+ <br>
694
+ An application have to invoke the following functions once before using
695
+ encodings for multi-byte character set.<br>
696
+ <br>
697
+ <table style="width: 100%; text-align: left;" border="1" cellpadding="2"
698
+ cellspacing="2">
699
+ <tbody>
700
+ <tr>
701
+ <td
702
+ style="vertical-align: top; text-align: right; width: 24px; background-color: rgb(204, 204, 204);"><br>
703
+ </td>
704
+ <td
705
+ style="vertical-align: top; background-color: rgb(204, 204, 204); width: 180px; font-weight: bold;">Function
706
+ Name</td>
707
+ <td
708
+ style="vertical-align: top; background-color: rgb(204, 204, 204); font-weight: bold;">Description<br>
709
+ </td>
710
+ </tr>
711
+ <tr>
712
+ <td style="vertical-align: top; text-align: right; width: 24px;">1<br>
713
+ </td>
714
+ <td style="vertical-align: top; width: 180px;"><a
715
+ href="document_handling.html#HPDF_UseCNSEncodings">HPDF_UseCNSEncodings()</a><br>
716
+ </td>
717
+ <td style="vertical-align: top;">It makes simplified Chinese
718
+ Encodings(GB-EUC-H, GB-EUC-V, GBK-EUC-H, GBK-EUC-V) to available.<br>
719
+ </td>
720
+ </tr>
721
+ <tr>
722
+ <td style="vertical-align: top; text-align: right; width: 24px;">2<br>
723
+ </td>
724
+ <td style="vertical-align: top; width: 180px;"><a
725
+ href="document_handling.html#HPDF_UseCNTEncodings">HPDF_UseCNTEncodings()</a><br>
726
+ </td>
727
+ <td style="vertical-align: top;">It makes traditional Chinese
728
+ Encodings(ETen-B5-H, ETen-B5-V) to available.</td>
729
+ </tr>
730
+ <tr>
731
+ <td style="vertical-align: top; text-align: right; width: 24px;">3<br>
732
+ </td>
733
+ <td style="vertical-align: top; width: 180px;"><a
734
+ href="document_handling.html#HPDF_UseJPEncodings">HPDF_UseJPEncodings()</a><br>
735
+ </td>
736
+ <td style="vertical-align: top;">It makes Japanese
737
+ Encodings(90ms-RKSJ-H, 90ms-RKSJ-V, 90msp-RKSJ-H, EUC-H, EUC-V) to
738
+ available.</td>
739
+ </tr>
740
+ <tr>
741
+ <td style="vertical-align: top; text-align: right; width: 24px;">4<br>
742
+ </td>
743
+ <td style="vertical-align: top; width: 180px;"><a
744
+ href="document_handling.html#HPDF_UseKREncodings">HPDF_UseKREncodings()</a><br>
745
+ </td>
746
+ <td style="vertical-align: top;">It makes Korean Encodings
747
+ (KSC-EUC-H, KSC-EUC-V, KSCms-UHC-H, KSCms-UHC-HW-H, KSCms-UHC-HW-V) to
748
+ available.</td>
749
+ </tr>
750
+ </tbody>
751
+ </table>
752
+ </div>
753
+ <br>
754
+ </div>
755
+ </div>
756
+ <div id="lcol">
757
+ <div class="sidebar">
758
+ <ul>
759
+ </ul>
760
+ <ul>
761
+ <li> <a href="#The_type_of_fonts_">The type of functions</a></li>
762
+ <li><a href="#Base14_Font_">Base14 Font</a></li>
763
+ <li><a href="#Type1_Font_">Type1 Font</a></li>
764
+ <li><a href="#TrueType_Font_">TrueType Font</a></li>
765
+ <li><a href="#TrueType_Font_">CID Font</a></li>
766
+ <li><a href="#The_type_of_encodings_">The encodings for single-byte
767
+ character set</a></li>
768
+ <li><a href="#The_encodings_for_multi-byte_character">The encodings
769
+ for multi-byte character set<br>
770
+ </a></li>
771
+ </ul>
772
+ <ul>
773
+ </ul>
774
+ <br>
775
+ <br>
776
+ <br>
777
+ <br>
778
+ <br>
779
+ <br>
780
+ <br>
781
+ <br>
782
+ <br>
783
+ <br>
784
+ <br>
785
+ <br>
786
+ <br>
787
+ <br>
788
+ <br>
789
+ <br>
790
+ <br>
791
+ <br>
792
+ <br>
793
+ <br>
794
+ <br>
795
+ <br>
796
+ <br>
797
+ <br>
798
+ <br>
799
+ <br>
800
+ <br>
801
+ <br>
802
+ <br>
803
+ <br>
804
+ <br>
805
+ <br>
806
+ <br>
807
+ <br>
808
+ <br>
809
+ <br>
810
+ <br>
811
+ <br>
812
+ <br>
813
+ <br>
814
+ <br>
815
+ <br>
816
+ <br>
817
+ <br>
818
+ <br>
819
+ <br>
820
+ <br>
821
+ <br>
822
+ <br>
823
+ <br>
824
+ <br>
825
+ <br>
826
+ <br>
827
+ <br>
828
+ <br>
829
+ <br>
830
+ <br>
831
+ <br>
832
+ <br>
833
+ <br>
834
+ <br>
835
+ <br>
836
+ <br>
837
+ <br>
838
+ <br>
839
+ <br>
840
+ <br>
841
+ <br>
842
+ <br>
843
+ <br>
844
+ <br>
845
+ <br>
846
+ <br>
847
+ <br>
848
+ <br>
849
+ <br>
850
+ <br>
851
+ <br>
852
+ <br>
853
+ <br>
854
+ <br>
855
+ <br>
856
+ <br>
857
+ <br>
858
+ <br>
859
+ <br>
860
+ <br>
861
+ <br>
862
+ <br>
863
+ <br>
864
+ <br>
865
+ <br>
866
+ <br>
867
+ <br>
868
+ <br>
869
+ <br>
870
+ <br>
871
+ <br>
872
+ <br>
873
+ <br>
874
+ <br>
875
+ <br>
876
+ <br>
877
+ <br>
878
+ <br>
879
+ <br>
880
+ <br>
881
+ <br>
882
+ <br>
883
+ <br>
884
+ <br>
885
+ <br>
886
+ <br>
887
+ <br>
888
+ <br>
889
+ <br>
890
+ <br>
891
+ <br>
892
+ <br>
893
+ <br>
894
+ <br>
895
+ <br>
896
+ <br>
897
+ <br>
898
+ <br>
899
+ <br>
900
+ <br>
901
+ <br>
902
+ <br>
903
+ <br>
904
+ <br>
905
+ <br>
906
+ <br>
907
+ <br>
908
+ <br>
909
+ <br>
910
+ <br>
911
+ <br>
912
+ <br>
913
+ <br>
914
+ <br>
915
+ <br>
916
+ <br>
917
+ <br>
918
+ <br>
919
+ <br>
920
+ <br>
921
+ <br>
922
+ <br>
923
+ <br>
924
+ <br>
925
+ <br>
926
+ <br>
927
+ <br>
928
+ <br>
929
+ <br>
930
+ <br>
931
+ <br>
932
+ <br>
933
+ <br>
934
+ <br>
935
+ <br>
936
+ <br>
937
+ <br>
938
+ <br>
939
+ <br>
940
+ <br>
941
+ <br>
942
+ <br>
943
+ <br>
944
+ <br>
945
+ <br>
946
+ <br>
947
+ <br>
948
+ <br>
949
+ <br>
950
+ <br>
951
+ <br>
952
+ <br>
953
+ <br>
954
+ <br>
955
+ <br>
956
+ <br>
957
+ <br>
958
+ <br>
959
+ <br>
960
+ <br>
961
+ <br>
962
+ <br>
963
+ <br>
964
+ </div>
965
+ </div>
966
+ <br>
967
+ <br>
968
+ <br>
969
+ <br>
970
+ <br>
971
+ <br>
972
+ <br>
973
+ <br>
974
+ <br>
975
+ <br>
976
+ </div>
977
+ </body>
978
+ </html>