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
@@ -0,0 +1,1609 @@
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>Error Handling<br>
28
+ </h2>
29
+ <h3><a name="The_type_of_functions_"></a>The type of functions<br>
30
+ </h3>
31
+ <div class="bodytext1">There are three kind of functions in Haru.<br>
32
+ <br>
33
+ <table style="width: 100%; text-align: left;" border="1" cellpadding="1"
34
+ cellspacing="1">
35
+ <tbody>
36
+ <tr>
37
+ <td
38
+ style="vertical-align: top; width: 20px; text-align: right; background-color: rgb(204, 204, 204);"><br>
39
+ </td>
40
+ <td
41
+ style="vertical-align: top; background-color: rgb(204, 204, 204); width: 50%;">The
42
+ type of function<br>
43
+ </td>
44
+ <td
45
+ style="vertical-align: top; background-color: rgb(204, 204, 204);">Retuen
46
+ value when an error occurred<br>
47
+ </td>
48
+ </tr>
49
+ <tr>
50
+ <td style="vertical-align: top; width: 20px; text-align: right;">1<br>
51
+ </td>
52
+ <td style="vertical-align: top; width: 50%;">The function whose
53
+ type of return parameter is HPDF_STATUS<br>
54
+ </td>
55
+ <td style="vertical-align: top;">It returns the code of error<br>
56
+ </td>
57
+ </tr>
58
+ <tr>
59
+ <td style="vertical-align: top; width: 20px; text-align: right;">2<br>
60
+ </td>
61
+ <td style="vertical-align: top; width: 50%;">The function which
62
+ returns the value<br>
63
+ </td>
64
+ <td style="vertical-align: top;">It returns the initial value<br>
65
+ </td>
66
+ </tr>
67
+ <tr>
68
+ <td style="vertical-align: top; width: 20px; text-align: right;">3</td>
69
+ <td style="vertical-align: top; width: 50%;">The function which
70
+ retruns the handle of object<br>
71
+ </td>
72
+ <td style="vertical-align: top;">It return NULL<br>
73
+ </td>
74
+ </tr>
75
+ </tbody>
76
+ </table>
77
+ <br>
78
+ When an error has occurred, an above return value is returned, and an
79
+ error
80
+ code is set to the document object. <br>
81
+ You can get an error code by invoking <a
82
+ href="document_handling.html#HPDF_GetError_">HPDF_GetError()</a>.<br>
83
+ In addition, there are some functions which set a detailed error-code
84
+ with an error-code. The detailed error-code can be refered by invoking
85
+ HPDF_GetErrorDetail().<br>
86
+ <br>
87
+ However, when the first parameter of a function is invalid, the
88
+ error-code is not set (because the function cannot find a document
89
+ object that the error-code should be set).<br>
90
+ <br>
91
+ When a user-defined error function was set, the function is invoked
92
+ after an error-code is set.<br>
93
+ <br>
94
+ <div class="bodynote">Note:<br>
95
+ Once an error code is set, invoking some IO processing functions are
96
+ blocked. An application have to invoke HPDF_ResetError() to resume
97
+ program.<br>
98
+ </div>
99
+ <br>
100
+ </div>
101
+ <h3><a name="User-defined_error_handler_"></a>User-defined error handler<br>
102
+ </h3>
103
+ <div class="bodytext1">You can use user-defined error handler which is
104
+ invoked when an error occurred. <br>
105
+ The definition of an error handler is as follows.<br>
106
+ <br>
107
+ <div class="bodycode">#include "hpdf_types.h"<br>
108
+ <br>
109
+ typedef void<br>
110
+ (*HPDF_Error_Handler)&nbsp; (HPDF_STATUS&nbsp;&nbsp; error_no,<br>
111
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
112
+ HPDF_STATUS&nbsp;&nbsp; detail_no,<br>
113
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
114
+ void&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *user_data);<br>
115
+ <br>
116
+ </div>
117
+ <br>
118
+ When you build Haru as shared library in Windows environment, The
119
+ definition is as follows.<br>
120
+ <div class="bodycode">#include "hpdf_types.h"<br>
121
+ <br>
122
+ typedef void<br>
123
+ (__stdcall *HPDF_Error_Handler)&nbsp; (HPDF_STATUS&nbsp;&nbsp; error_no,<br>
124
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
125
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
126
+ HPDF_STATUS&nbsp;&nbsp; detail_no,<br>
127
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
128
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
129
+ void&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *user_data);<br>
130
+ <br>
131
+ </div>
132
+ <br>
133
+ <br>
134
+ </div>
135
+ <h3><a name="Effective_usage_of_a_user-defined_error_"></a>Effective
136
+ usage of a user-defined error handler<br>
137
+ </h3>
138
+ <div class="bodytext1">You can perform error processing effectively by
139
+ using an error handler.<br>
140
+ <br>
141
+ <span style="font-weight: bold;">1. The typical usage of error handler
142
+ on C</span><br>
143
+ <br>
144
+ <div class="bodytext5">
145
+ C language does not support an exception feature, but with emulating an
146
+ exception handling by using setjmp/longjmp macro, the error handling
147
+ becomes simple.<br>
148
+ <br>
149
+ <div class="bodycode"><span style="font-weight: bold;">&nbsp; void</span><br>
150
+ &nbsp; error_handler (HPDF_STATUS&nbsp;&nbsp; error_no,<br>
151
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
152
+ HPDF_STATUS&nbsp;&nbsp; detail_no,<br>
153
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
154
+ <span style="font-weight: bold;">void&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
155
+ </span>*user_data)<br>
156
+ &nbsp; {<br>
157
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(0, 153, 0);">/*
158
+ invoke longjmp() when an error has occurred */</span><br>
159
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf ("ERROR: error_no=%04X,
160
+ detail_no=%d\n", (<span style="font-weight: bold;">unsigned int</span>)error_no,&nbsp;&nbsp;&nbsp;&nbsp;
161
+ <br>
162
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (<span
163
+ style="font-weight: bold;">int</span>)detail_no);<br>
164
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; longjmp(env, 1);<br>
165
+ &nbsp; }<br>
166
+ <br>
167
+ &nbsp; <span style="font-weight: bold;">int </span>main () <br>
168
+ &nbsp; {<br>
169
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(0, 153, 0);">/*
170
+ set error-handler when creating a PDF_Doc object */</span><br>
171
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HPDF_Doc pdf;<br>
172
+ <br>
173
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pdf = HPDF_New (error_handler, <span
174
+ style="font-weight: bold;">NULL</span>);<br>
175
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">if </span>(!pdf)
176
+ {<br>
177
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf ("error:
178
+ cannot create PdfDoc object\n");<br>
179
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span
180
+ style="font-weight: bold;">return </span>1;<br>
181
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
182
+ <br>
183
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">if </span>(setjmp(env))
184
+ {<br>
185
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HPDF_Free (pdf);<br>
186
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span
187
+ style="font-weight: bold;">return </span>1;<br>
188
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
189
+ <br>
190
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(0, 153, 0);">/*
191
+ do page description processes</span><br style="color: rgb(0, 153, 0);">
192
+ <span style="color: rgb(0, 153, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
193
+ * (we do not have to check the return code of functions) </span><br
194
+ style="color: rgb(0, 153, 0);">
195
+ <span style="color: rgb(0, 153, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
196
+ */</span><br>
197
+ <br>
198
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(0, 153, 0);">/*
199
+ save the document to a file */</span><br>
200
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HPDF_SaveToFile (pdf, fname);<br>
201
+ <br>
202
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(0, 153, 0);">/*
203
+ clean up */</span><br>
204
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HPDF_Free (pdf);<br>
205
+ <br>
206
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">return
207
+ </span>0;<br>
208
+ &nbsp; }<br>
209
+ <br>
210
+ </div>
211
+ <br>
212
+ <br>
213
+ </div>
214
+ <span style="font-weight: bold;">2. The typical usage of error handler
215
+ on C++</span><br>
216
+ <br>
217
+ <div class="bodytext5">
218
+ C++ supports an exception feature. Error processing becomes simple by
219
+ throwing an exception when an error has occurred.<br>
220
+ <br>
221
+ <div class="bodycode"><span style="font-weight: bold;">&nbsp; void</span><br>
222
+ &nbsp; error_handler (HPDF_STATUS&nbsp;&nbsp; error_no,<br>
223
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
224
+ HPDF_STATUS&nbsp;&nbsp; detail_no,<br>
225
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
226
+ <span style="font-weight: bold;">void&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
227
+ </span>*user_data)<br>
228
+ &nbsp; {<br>
229
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(0, 153, 0);">/*
230
+ throw exception when an error has occured */</span><br>
231
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf ("ERROR: error_no=%04X,
232
+ detail_no=%d\n", (<span style="font-weight: bold;">unsigned int</span>)error_no,&nbsp;&nbsp;&nbsp;&nbsp;
233
+ <br>
234
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (<span
235
+ style="font-weight: bold;">int</span>)detail_no);<br>
236
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">throw </span>std::exception
237
+ ();<br>
238
+ &nbsp; }<br>
239
+ <br>
240
+ &nbsp; <span style="font-weight: bold;">int </span>main () <br>
241
+ &nbsp; {<br>
242
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(0, 153, 0);">/*
243
+ set error-handler when creating a PDF_Doc object&nbsp; */</span><br>
244
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HPDF_Doc pdf = HPDF_New (error_handler, <span
245
+ style="font-weight: bold;">NULL</span>);<br>
246
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">if </span>(!pdf)
247
+ {<br>
248
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf ("error:
249
+ cannot create PdfDoc object\n");<br>
250
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span
251
+ style="font-weight: bold;">return </span>1;<br>
252
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
253
+ <br>
254
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">try </span>{<br>
255
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span
256
+ style="color: rgb(0, 153, 0);">/* do page description processes</span><br
257
+ style="color: rgb(0, 153, 0);">
258
+ <span style="color: rgb(0, 153, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
259
+ * (we do not have to check the return code of functions) </span><br
260
+ style="color: rgb(0, 153, 0);">
261
+ <span style="color: rgb(0, 153, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
262
+ */</span><br>
263
+ <br>
264
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span
265
+ style="color: rgb(0, 153, 0);">/* save the document to a file */</span><br>
266
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HPDF_SaveToFile
267
+ (pdf, fname);<br>
268
+ <br>
269
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <span
270
+ style="font-weight: bold;">catch</span> (...) {<br>
271
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
272
+ HPDF_Free (pdf);<br>
273
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
274
+ <span style="font-weight: bold;">return </span>1;<br>
275
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
276
+ <br>
277
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span
278
+ style="color: rgb(0, 153, 0);">/* clean up */</span><br>
279
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HPDF_Free (pdf);<br>
280
+ <br>
281
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span
282
+ style="font-weight: bold;">return </span>0;<br>
283
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
284
+ &nbsp;&nbsp;&nbsp; }<br>
285
+ <br>
286
+ </div>
287
+ <br>
288
+ <br>
289
+ </div>
290
+ <span style="font-weight: bold;">3. Other programing languages<br>
291
+ <br>
292
+ </span>
293
+ <div class="bodytext5">In the case of languages supporting an exception
294
+ handling, you can handle an error in a similar way. In the case of the
295
+ languages which does not support an exception handling, you have to
296
+ check return code after invoking functions.<br>
297
+ There are wrapper programs for Ruby,Delphi and C# in "if" directory.
298
+ Refer
299
+ these source-code.<br>
300
+ <br>
301
+ </div>
302
+ </div>
303
+ <h3><a name="Finalization_and_cleanup_"></a>Finalization and cleanup<br>
304
+ </h3>
305
+ <div class="bodytext1">Do not forget to invoke <a
306
+ href="document_handling.html#HPDF_Free_">HPDF_Free()</a> in any case.<br>
307
+ As a result, it is guaranteed that the allocated memory is surely
308
+ freed. <br>
309
+ </div>
310
+ <br>
311
+ <h3><a name="The_list_of_error_code_"></a>List of error code<br>
312
+ </h3>
313
+ <div class="bodytext1"><br>
314
+ <table style="width: 100%; text-align: left;" border="1" cellpadding="1"
315
+ cellspacing="1">
316
+ <tbody>
317
+ <tr>
318
+ <td
319
+ style="vertical-align: top; width: 24px; text-align: right; background-color: rgb(204, 204, 204);"><br>
320
+ </td>
321
+ <td
322
+ style="vertical-align: top; width: 280px; background-color: rgb(204, 204, 204);">Name<br>
323
+ </td>
324
+ <td
325
+ style="vertical-align: top; width: 50px; background-color: rgb(204, 204, 204);">Value<br>
326
+ </td>
327
+ <td
328
+ style="vertical-align: top; background-color: rgb(204, 204, 204);">Description<br>
329
+ </td>
330
+ </tr>
331
+ <tr>
332
+ <td style="vertical-align: top; width: 24px; text-align: right;">1<br>
333
+ </td>
334
+ <td style="vertical-align: top; width: 280px;">HPDF_ARRAY_COUNT_ERR</td>
335
+ <td style="vertical-align: top; width: 50px;">0x1001</td>
336
+ <td style="vertical-align: top;">Internal error. The consistency
337
+ of the data was lost. <br>
338
+ </td>
339
+ </tr>
340
+ <tr>
341
+ <td style="vertical-align: top; width: 24px; text-align: right;">2<br>
342
+ </td>
343
+ <td style="vertical-align: top; width: 280px;">HPDF_ARRAY_ITEM_NOT_FOUND</td>
344
+ <td style="vertical-align: top; width: 50px;">0x1002</td>
345
+ <td style="vertical-align: top;">Internal error. The consistency
346
+ of the data was lost. </td>
347
+ </tr>
348
+ <tr>
349
+ <td style="vertical-align: top; width: 24px; text-align: right;">3<br>
350
+ </td>
351
+ <td style="vertical-align: top; width: 280px;">HPDF_ARRAY_ITEM_UNEXPECTED_TYPE</td>
352
+ <td style="vertical-align: top; width: 50px;">0x1003</td>
353
+ <td style="vertical-align: top;">Internal error. The consistency
354
+ of the data was lost. </td>
355
+ </tr>
356
+ <tr>
357
+ <td style="vertical-align: top; width: 24px; text-align: right;">4<br>
358
+ </td>
359
+ <td style="vertical-align: top; width: 280px;">HPDF_BINARY_LENGTH_ERR</td>
360
+ <td style="vertical-align: top; width: 50px;">0x1004</td>
361
+ <td style="vertical-align: top;">The length of the data exceeds
362
+ HPDF_LIMIT_MAX_STRING_LEN.<br>
363
+ </td>
364
+ </tr>
365
+ <tr>
366
+ <td style="vertical-align: top; width: 24px; text-align: right;">5<br>
367
+ </td>
368
+ <td style="vertical-align: top; width: 280px;">HPDF_CANNOT_GET_PALLET</td>
369
+ <td style="vertical-align: top; width: 50px;">0x1005</td>
370
+ <td style="vertical-align: top;">Cannot get a pallet data from
371
+ PNG image. </td>
372
+ </tr>
373
+ <tr>
374
+ <td style="vertical-align: top; width: 24px; text-align: right;">6<br>
375
+ </td>
376
+ <td style="vertical-align: top; width: 280px;"><br>
377
+ </td>
378
+ <td style="vertical-align: top; width: 50px;">0x1006</td>
379
+ <td style="vertical-align: top;"><br>
380
+ </td>
381
+ </tr>
382
+ <tr>
383
+ <td style="vertical-align: top; width: 24px; text-align: right;">7<br>
384
+ </td>
385
+ <td style="vertical-align: top; width: 280px;">HPDF_DICT_COUNT_ERR</td>
386
+ <td style="vertical-align: top; width: 50px;">0x1007</td>
387
+ <td style="vertical-align: top;">The count of elements of a
388
+ dictionary exceeds HPDF_LIMIT_MAX_DICT_ELEMENT<br>
389
+ </td>
390
+ </tr>
391
+ <tr>
392
+ <td style="vertical-align: top; width: 24px; text-align: right;">8<br>
393
+ </td>
394
+ <td style="vertical-align: top; width: 280px;">HPDF_DICT_ITEM_NOT_FOUND</td>
395
+ <td style="vertical-align: top; width: 50px;">0x1008</td>
396
+ <td style="vertical-align: top;">Internal error. The consistency
397
+ of the data was lost. </td>
398
+ </tr>
399
+ <tr>
400
+ <td style="vertical-align: top; width: 24px; text-align: right;">9<br>
401
+ </td>
402
+ <td style="vertical-align: top; width: 280px;">HPDF_DICT_ITEM_UNEXPECTED_TYPE</td>
403
+ <td style="vertical-align: top; width: 50px;">0x1009</td>
404
+ <td style="vertical-align: top;">Internal error. The consistency
405
+ of the data was lost. </td>
406
+ </tr>
407
+ <tr>
408
+ <td style="vertical-align: top; width: 24px; text-align: right;">10<br>
409
+ </td>
410
+ <td style="vertical-align: top; width: 280px;">HPDF_DICT_STREAM_LENGTH_NOT_FOUND</td>
411
+ <td style="vertical-align: top; width: 50px;">0x100A</td>
412
+ <td style="vertical-align: top;">Internal error. The consistency
413
+ of the data was lost. </td>
414
+ </tr>
415
+ <tr>
416
+ <td style="vertical-align: top; width: 24px; text-align: right;">11<br>
417
+ </td>
418
+ <td style="vertical-align: top; width: 280px;">HPDF_DOC_ENCRYPTDICT_NOT_FOUND</td>
419
+ <td style="vertical-align: top; width: 50px;">0x100B</td>
420
+ <td style="vertical-align: top;">HPDF_SetPermission() OR
421
+ HPDF_SetEncryptMode() was called before a password is set.<br>
422
+ </td>
423
+ </tr>
424
+ <tr>
425
+ <td style="vertical-align: top; width: 24px; text-align: right;">12<br>
426
+ </td>
427
+ <td style="vertical-align: top; width: 280px;">HPDF_DOC_INVALID_OBJECT</td>
428
+ <td style="vertical-align: top; width: 50px;">0x100C</td>
429
+ <td style="vertical-align: top;">Internal error. The consistency
430
+ of the data was lost. </td>
431
+ </tr>
432
+ <tr>
433
+ <td style="vertical-align: top; width: 24px; text-align: right;">13<br>
434
+ </td>
435
+ <td style="vertical-align: top; width: 280px;"><br>
436
+ </td>
437
+ <td style="vertical-align: top; width: 50px;">0x100D</td>
438
+ <td style="vertical-align: top;"><br>
439
+ </td>
440
+ </tr>
441
+ <tr>
442
+ <td style="vertical-align: top; width: 24px; text-align: right;">14<br>
443
+ </td>
444
+ <td style="vertical-align: top; width: 280px;">HPDF_DUPLICATE_REGISTRATION</td>
445
+ <td style="vertical-align: top; width: 50px;">0x100E</td>
446
+ <td style="vertical-align: top;">Tried to register a font that
447
+ has been registered. <br>
448
+ </td>
449
+ </tr>
450
+ <tr>
451
+ <td style="vertical-align: top; width: 24px; text-align: right;">15<br>
452
+ </td>
453
+ <td style="vertical-align: top; width: 280px;">HPDF_EXCEED_JWW_CODE_NUM_LIMIT<br>
454
+ </td>
455
+ <td style="vertical-align: top; width: 50px;">0x100F</td>
456
+ <td style="vertical-align: top;">Cannot register a character to
457
+ the japanese word wrap characters list.<br>
458
+ </td>
459
+ </tr>
460
+ <tr>
461
+ <td style="vertical-align: top; width: 24px; text-align: right;">16<br>
462
+ </td>
463
+ <td style="vertical-align: top; width: 280px;"><br>
464
+ </td>
465
+ <td style="vertical-align: top; width: 50px;">0x1010</td>
466
+ <td style="vertical-align: top;"><br>
467
+ </td>
468
+ </tr>
469
+ <tr>
470
+ <td style="vertical-align: top; width: 24px; text-align: right;">17<br>
471
+ </td>
472
+ <td style="vertical-align: top; width: 280px;">HPDF_ENCRYPT_INVALID_PASSWORD</td>
473
+ <td style="vertical-align: top; width: 50px;">0x1011</td>
474
+ <td style="vertical-align: top;">Tried to set the owner password
475
+ to NULL.<br>
476
+ The owner password and user password is the same. </td>
477
+ </tr>
478
+ <tr>
479
+ <td style="vertical-align: top; width: 24px; text-align: right;">18<br>
480
+ </td>
481
+ <td style="vertical-align: top; width: 280px;">HPDF_ERR_UNKNOWN_CLASS</td>
482
+ <td style="vertical-align: top; width: 50px;">0x1013</td>
483
+ <td style="vertical-align: top;">Internal error. The consistency
484
+ of the data was lost. </td>
485
+ </tr>
486
+ <tr>
487
+ <td style="vertical-align: top; width: 24px; text-align: right;">19<br>
488
+ </td>
489
+ <td style="vertical-align: top; width: 280px;">HPDF_EXCEED_GSTATE_LIMIT</td>
490
+ <td style="vertical-align: top; width: 50px;">0x1014</td>
491
+ <td style="vertical-align: top;">The depth of the stack exceeded
492
+ HPDF_LIMIT_MAX_GSTATE.<br>
493
+ </td>
494
+ </tr>
495
+ <tr>
496
+ <td style="vertical-align: top; width: 24px; text-align: right;">20<br>
497
+ </td>
498
+ <td style="vertical-align: top; width: 280px;">HPDF_FAILD_TO_ALLOC_MEM</td>
499
+ <td style="vertical-align: top; width: 50px;">0x1015</td>
500
+ <td style="vertical-align: top;">Memory allocation failed.<br>
501
+ </td>
502
+ </tr>
503
+ <tr>
504
+ <td style="vertical-align: top; width: 24px; text-align: right;">21<br>
505
+ </td>
506
+ <td style="vertical-align: top; width: 280px;">HPDF_FILE_IO_ERROR</td>
507
+ <td style="vertical-align: top; width: 50px;">0x1016</td>
508
+ <td style="vertical-align: top;">File processing failed. (A
509
+ detailed code is set.)<br>
510
+ </td>
511
+ </tr>
512
+ <tr>
513
+ <td style="vertical-align: top; width: 24px; text-align: right;">22<br>
514
+ </td>
515
+ <td style="vertical-align: top; width: 280px;">HPDF_FILE_OPEN_ERROR</td>
516
+ <td style="vertical-align: top; width: 50px;">0x1017</td>
517
+ <td style="vertical-align: top;">Cannot open a file. (A detailed
518
+ code is set.)<br>
519
+ </td>
520
+ </tr>
521
+ <tr>
522
+ <td style="vertical-align: top; width: 24px; text-align: right;">23<br>
523
+ </td>
524
+ <td style="vertical-align: top; width: 280px;"><br>
525
+ </td>
526
+ <td style="vertical-align: top; width: 50px;">0x1018</td>
527
+ <td style="vertical-align: top;"><br>
528
+ </td>
529
+ </tr>
530
+ <tr>
531
+ <td style="vertical-align: top; width: 24px; text-align: right;">24<br>
532
+ </td>
533
+ <td style="vertical-align: top; width: 280px;">HPDF_FONT_EXISTS</td>
534
+ <td style="vertical-align: top; width: 50px;">0x1019</td>
535
+ <td style="vertical-align: top;">Tried to load a font that has
536
+ been registered. </td>
537
+ </tr>
538
+ <tr>
539
+ <td style="vertical-align: top; width: 24px; text-align: right;">25<br>
540
+ </td>
541
+ <td style="vertical-align: top; width: 280px;">HPDF_FONT_INVALID_WIDTHS_TABLE</td>
542
+ <td style="vertical-align: top; width: 50px;">0x101A</td>
543
+ <td style="vertical-align: top;">The format of a font-file is
544
+ invalid .<br>
545
+ Internal error. The consistency of the data was lost. </td>
546
+ </tr>
547
+ <tr>
548
+ <td style="vertical-align: top; width: 24px; text-align: right;">26<br>
549
+ </td>
550
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_AFM_HEADER</td>
551
+ <td style="vertical-align: top; width: 50px;">0x101B</td>
552
+ <td style="vertical-align: top;">Cannot recognize a header of an
553
+ afm file.<br>
554
+ </td>
555
+ </tr>
556
+ <tr>
557
+ <td style="vertical-align: top; width: 24px; text-align: right;">27<br>
558
+ </td>
559
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_ANNOTATION</td>
560
+ <td style="vertical-align: top; width: 50px;">0x101C</td>
561
+ <td style="vertical-align: top;">The specified annotation handle
562
+ is invalid. <br>
563
+ </td>
564
+ </tr>
565
+ <tr>
566
+ <td style="vertical-align: top; width: 24px; text-align: right;">28<br>
567
+ </td>
568
+ <td style="vertical-align: top; width: 280px;"><br>
569
+ </td>
570
+ <td style="vertical-align: top; width: 50px;">0x101D</td>
571
+ <td style="vertical-align: top;"><br>
572
+ </td>
573
+ </tr>
574
+ <tr>
575
+ <td style="vertical-align: top; width: 24px; text-align: right;">29<br>
576
+ </td>
577
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_BIT_PER_COMPONENT</td>
578
+ <td style="vertical-align: top; width: 50px;">0x101E</td>
579
+ <td style="vertical-align: top;">Bit-per-component of a image
580
+ which was set as mask-image is invalid.<br>
581
+ </td>
582
+ </tr>
583
+ <tr>
584
+ <td style="vertical-align: top; width: 24px; text-align: right;">30<br>
585
+ </td>
586
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_CHAR_MATRICS_DATA</td>
587
+ <td style="vertical-align: top; width: 50px;">0x101F</td>
588
+ <td style="vertical-align: top;">Cannot recognize
589
+ char-matrics-data&nbsp; of an afm file. </td>
590
+ </tr>
591
+ <tr>
592
+ <td style="vertical-align: top; width: 24px; text-align: right;">31<br>
593
+ </td>
594
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_COLOR_SPACE</td>
595
+ <td style="vertical-align: top; width: 50px;">0x1020</td>
596
+ <td style="vertical-align: top;">1. The color_space parameter of
597
+ HPDF_LoadRawImage is invalid.<br>
598
+ 2. Color-space of a image which was set as mask-image is invalid.<br>
599
+ 3. The function which is invalid in the present color-space was invoked.<br>
600
+ </td>
601
+ </tr>
602
+ <tr>
603
+ <td style="vertical-align: top; width: 24px; text-align: right;">32<br>
604
+ </td>
605
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_COMPRESSION_MODE</td>
606
+ <td style="vertical-align: top; width: 50px;">0x1021</td>
607
+ <td style="vertical-align: top;">Invalid value was set when
608
+ invoking HPDF_SetCommpressionMode().<br>
609
+ </td>
610
+ </tr>
611
+ <tr>
612
+ <td style="vertical-align: top; width: 24px; text-align: right;">33<br>
613
+ </td>
614
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_DATE_TIME</td>
615
+ <td style="vertical-align: top; width: 50px;">0x1022</td>
616
+ <td style="vertical-align: top;">An invalid date-time value was
617
+ set.<br>
618
+ </td>
619
+ </tr>
620
+ <tr>
621
+ <td style="vertical-align: top; width: 24px; text-align: right;">34<br>
622
+ </td>
623
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_DESTINATION</td>
624
+ <td style="vertical-align: top; width: 50px;">0x1023</td>
625
+ <td style="vertical-align: top;">An invalid destination handle
626
+ was set.<br>
627
+ </td>
628
+ </tr>
629
+ <tr>
630
+ <td style="vertical-align: top; width: 24px; text-align: right;">35<br>
631
+ </td>
632
+ <td style="vertical-align: top; width: 280px;"><br>
633
+ </td>
634
+ <td style="vertical-align: top; width: 50px;">0x1024</td>
635
+ <td style="vertical-align: top;"><br>
636
+ </td>
637
+ </tr>
638
+ <tr>
639
+ <td style="vertical-align: top; width: 24px; text-align: right;">36<br>
640
+ </td>
641
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_DOCUMENT</td>
642
+ <td style="vertical-align: top; width: 50px;">0x1025</td>
643
+ <td style="vertical-align: top;">An invalid document handle is
644
+ set. </td>
645
+ </tr>
646
+ <tr>
647
+ <td style="vertical-align: top; width: 24px; text-align: right;">37<br>
648
+ </td>
649
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_DOCUMENT_STATE</td>
650
+ <td style="vertical-align: top; width: 50px;">0x1026</td>
651
+ <td style="vertical-align: top;">The function which is invalid in
652
+ the present state was invoked. </td>
653
+ </tr>
654
+ <tr>
655
+ <td style="vertical-align: top; width: 24px; text-align: right;">38<br>
656
+ </td>
657
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_ENCODER</td>
658
+ <td style="vertical-align: top; width: 50px;">0x1027</td>
659
+ <td style="vertical-align: top;">An invalid encoder handle is
660
+ set. </td>
661
+ </tr>
662
+ <tr>
663
+ <td style="vertical-align: top; width: 24px; text-align: right;">39<br>
664
+ </td>
665
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_ENCODER_TYPE</td>
666
+ <td style="vertical-align: top; width: 50px;">0x1028</td>
667
+ <td style="vertical-align: top;">A combination between font and
668
+ encoder is wrong.<br>
669
+ </td>
670
+ </tr>
671
+ <tr>
672
+ <td style="vertical-align: top; width: 24px; text-align: right;">40<br>
673
+ </td>
674
+ <td style="vertical-align: top; width: 280px;"><br>
675
+ </td>
676
+ <td style="vertical-align: top; width: 50px;">0x1029</td>
677
+ <td style="vertical-align: top;"><br>
678
+ </td>
679
+ </tr>
680
+ <tr>
681
+ <td style="vertical-align: top; width: 24px; text-align: right;">41<br>
682
+ </td>
683
+ <td style="vertical-align: top; width: 280px;"><br>
684
+ </td>
685
+ <td style="vertical-align: top; width: 50px;">0x102A</td>
686
+ <td style="vertical-align: top;"><br>
687
+ </td>
688
+ </tr>
689
+ <tr>
690
+ <td style="vertical-align: top; width: 24px; text-align: right;">42<br>
691
+ </td>
692
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_ENCODING_NAME</td>
693
+ <td style="vertical-align: top; width: 50px;">0x102B</td>
694
+ <td style="vertical-align: top;">An Invalid encoding name is
695
+ specified.<br>
696
+ </td>
697
+ </tr>
698
+ <tr>
699
+ <td style="vertical-align: top; width: 24px; text-align: right;">43<br>
700
+ </td>
701
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_ENCRYPT_KEY_LEN</td>
702
+ <td style="vertical-align: top; width: 50px;">0x102C</td>
703
+ <td style="vertical-align: top;">The lengh of the key of
704
+ encryption is invalid.<br>
705
+ </td>
706
+ </tr>
707
+ <tr>
708
+ <td style="vertical-align: top; width: 24px; text-align: right;">44<br>
709
+ </td>
710
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_FONTDEF_DATA</td>
711
+ <td style="vertical-align: top; width: 50px;">0x102D</td>
712
+ <td style="vertical-align: top;">1. An invalid font handle was
713
+ set.<br>
714
+ 2. Unsupported font format.<br>
715
+ </td>
716
+ </tr>
717
+ <tr>
718
+ <td style="vertical-align: top; width: 24px; text-align: right;">45<br>
719
+ </td>
720
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_FONTDEF_TYPE</td>
721
+ <td style="vertical-align: top; width: 50px;">0x102E</td>
722
+ <td style="vertical-align: top;">Internal error. The consistency
723
+ of the data was lost. </td>
724
+ </tr>
725
+ <tr>
726
+ <td style="vertical-align: top; width: 24px; text-align: right;">46<br>
727
+ </td>
728
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_FONT_NAME</td>
729
+ <td style="vertical-align: top; width: 50px;">0x102F</td>
730
+ <td style="vertical-align: top;">A font which has the specified
731
+ name is not found.<br>
732
+ </td>
733
+ </tr>
734
+ <tr>
735
+ <td style="vertical-align: top; width: 24px; text-align: right;">47<br>
736
+ </td>
737
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_IMAGE</td>
738
+ <td style="vertical-align: top; width: 50px;">0x1030</td>
739
+ <td style="vertical-align: top;">Unsupported image format.<br>
740
+ </td>
741
+ </tr>
742
+ <tr>
743
+ <td style="vertical-align: top; width: 24px; text-align: right;">48<br>
744
+ </td>
745
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_JPEG_DATA</td>
746
+ <td style="vertical-align: top; width: 50px;">0x1031</td>
747
+ <td style="vertical-align: top;">Unsupported image format. </td>
748
+ </tr>
749
+ <tr>
750
+ <td style="vertical-align: top; width: 24px; text-align: right;">49<br>
751
+ </td>
752
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_N_DATA</td>
753
+ <td style="vertical-align: top; width: 50px;">0x1032</td>
754
+ <td style="vertical-align: top;">Cannot read a postscript-name
755
+ from an afm file. </td>
756
+ </tr>
757
+ <tr>
758
+ <td style="vertical-align: top; width: 24px; text-align: right;">50<br>
759
+ </td>
760
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_OBJECT</td>
761
+ <td style="vertical-align: top; width: 50px;">0x1033</td>
762
+ <td style="vertical-align: top;">1. An invalid object is set.<br>
763
+ 2. Internal error. The consistency of the data was lost. </td>
764
+ </tr>
765
+ <tr>
766
+ <td style="vertical-align: top; width: 24px; text-align: right;">51<br>
767
+ </td>
768
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_OBJ_ID</td>
769
+ <td style="vertical-align: top; width: 50px;">0x1034</td>
770
+ <td style="vertical-align: top;"> Internal error. The consistency
771
+ of the data was lost. </td>
772
+ </tr>
773
+ <tr>
774
+ <td style="vertical-align: top; width: 24px; text-align: right;">52<br>
775
+ </td>
776
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_OPERATION</td>
777
+ <td style="vertical-align: top; width: 50px;">0x1035</td>
778
+ <td style="vertical-align: top;">1. Invoked
779
+ HPDF_Image_SetColorMask() against the image-object which was set a
780
+ mask-image.<br>
781
+ </td>
782
+ </tr>
783
+ <tr>
784
+ <td style="vertical-align: top; width: 24px; text-align: right;">53<br>
785
+ </td>
786
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_OUTLINE</td>
787
+ <td style="vertical-align: top; width: 50px;">0x1036</td>
788
+ <td style="vertical-align: top;">An invalid outline-handle was
789
+ specified.<br>
790
+ </td>
791
+ </tr>
792
+ <tr>
793
+ <td style="vertical-align: top; width: 24px; text-align: right;">54<br>
794
+ </td>
795
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_PAGE</td>
796
+ <td style="vertical-align: top; width: 50px;">0x1037</td>
797
+ <td style="vertical-align: top;">An invalid page-handle was
798
+ specified.<br>
799
+ </td>
800
+ </tr>
801
+ <tr>
802
+ <td style="vertical-align: top; width: 24px; text-align: right;">55<br>
803
+ </td>
804
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_PAGES</td>
805
+ <td style="vertical-align: top; width: 50px;">0x1038</td>
806
+ <td style="vertical-align: top;">An invalid pages-handle was
807
+ specified. (internel error)<br>
808
+ </td>
809
+ </tr>
810
+ <tr>
811
+ <td style="vertical-align: top; width: 24px; text-align: right;">56<br>
812
+ </td>
813
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_PARAMETER</td>
814
+ <td style="vertical-align: top; width: 50px;">0x1039</td>
815
+ <td style="vertical-align: top;">An invalid value is set.<br>
816
+ </td>
817
+ </tr>
818
+ <tr>
819
+ <td style="vertical-align: top; width: 24px; text-align: right;">57<br>
820
+ </td>
821
+ <td style="vertical-align: top; width: 280px;"><br>
822
+ </td>
823
+ <td style="vertical-align: top; width: 50px;">0x103A</td>
824
+ <td style="vertical-align: top;"><br>
825
+ </td>
826
+ </tr>
827
+ <tr>
828
+ <td style="vertical-align: top; width: 24px; text-align: right;">58<br>
829
+ </td>
830
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_PNG_IMAGE</td>
831
+ <td style="vertical-align: top; width: 50px;">0x103B</td>
832
+ <td style="vertical-align: top;">Invalid PNG image format. </td>
833
+ </tr>
834
+ <tr>
835
+ <td style="vertical-align: top; width: 24px; text-align: right;">59<br>
836
+ </td>
837
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_STREAM</td>
838
+ <td style="vertical-align: top; width: 50px;">0x103C</td>
839
+ <td style="vertical-align: top;"> Internal error. The consistency
840
+ of the data was lost. </td>
841
+ </tr>
842
+ <tr>
843
+ <td style="vertical-align: top; width: 24px; text-align: right;">60<br>
844
+ </td>
845
+ <td style="vertical-align: top; width: 280px;">HPDF_MISSING_FILE_NAME_ENTRY<br>
846
+ </td>
847
+ <td style="vertical-align: top; width: 50px;">0x103D</td>
848
+ <td style="vertical-align: top;"> Internal error. The
849
+ "_FILE_NAME" entry for delayed loading is missing. </td>
850
+ </tr>
851
+ <tr>
852
+ <td style="vertical-align: top; width: 24px; text-align: right;">61<br>
853
+ </td>
854
+ <td style="vertical-align: top; width: 280px;"><br>
855
+ </td>
856
+ <td style="vertical-align: top; width: 50px;">0x103E</td>
857
+ <td style="vertical-align: top;"><br>
858
+ </td>
859
+ </tr>
860
+ <tr>
861
+ <td style="vertical-align: top; width: 24px; text-align: right;">62<br>
862
+ </td>
863
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_TTC_FILE</td>
864
+ <td style="vertical-align: top; width: 50px;">0x103F</td>
865
+ <td style="vertical-align: top;">Invalid .TTC file format.<br>
866
+ </td>
867
+ </tr>
868
+ <tr>
869
+ <td style="vertical-align: top; width: 24px; text-align: right;">63<br>
870
+ </td>
871
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_TTC_INDEX</td>
872
+ <td style="vertical-align: top; width: 50px;">0x1040</td>
873
+ <td style="vertical-align: top;">The index parameter was exceed
874
+ the number of included fonts<br>
875
+ </td>
876
+ </tr>
877
+ <tr>
878
+ <td style="vertical-align: top; width: 24px; text-align: right;">64<br>
879
+ </td>
880
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_WX_DATA</td>
881
+ <td style="vertical-align: top; width: 50px;">0x1041</td>
882
+ <td style="vertical-align: top;">Cannot read a width-data from an
883
+ afm file. </td>
884
+ </tr>
885
+ <tr>
886
+ <td style="vertical-align: top; width: 24px; text-align: right;">65<br>
887
+ </td>
888
+ <td style="vertical-align: top; width: 280px;">HPDF_ITEM_NOT_FOUND</td>
889
+ <td style="vertical-align: top; width: 50px;">0x1042</td>
890
+ <td style="vertical-align: top;"> Internal error. The consistency
891
+ of the data was lost. </td>
892
+ </tr>
893
+ <tr>
894
+ <td style="vertical-align: top; width: 24px; text-align: right;">66<br>
895
+ </td>
896
+ <td style="vertical-align: top; width: 280px;">HPDF_LIBPNG_ERROR</td>
897
+ <td style="vertical-align: top; width: 50px;">0x1043</td>
898
+ <td style="vertical-align: top;">An error has returned from
899
+ PNGLIB while loading an image.<br>
900
+ </td>
901
+ </tr>
902
+ <tr>
903
+ <td style="vertical-align: top; width: 24px; text-align: right;">67<br>
904
+ </td>
905
+ <td style="vertical-align: top; width: 280px;">HPDF_NAME_INVALID_VALUE</td>
906
+ <td style="vertical-align: top; width: 50px;">0x1044</td>
907
+ <td style="vertical-align: top;"> Internal error. The consistency
908
+ of the data was lost. </td>
909
+ </tr>
910
+ <tr>
911
+ <td style="vertical-align: top; width: 24px; text-align: right;">68<br>
912
+ </td>
913
+ <td style="vertical-align: top; width: 280px;">HPDF_NAME_OUT_OF_RANGE</td>
914
+ <td style="vertical-align: top; width: 50px;">0x1045</td>
915
+ <td style="vertical-align: top;"> Internal error. The consistency
916
+ of the data was lost. </td>
917
+ </tr>
918
+ <tr>
919
+ <td style="vertical-align: top; width: 24px; text-align: right;">69<br>
920
+ </td>
921
+ <td style="vertical-align: top; width: 280px;"><br>
922
+ </td>
923
+ <td style="vertical-align: top; width: 50px;">0x1046</td>
924
+ <td style="vertical-align: top;"><br>
925
+ </td>
926
+ </tr>
927
+ <tr>
928
+ <td style="vertical-align: top; width: 24px; text-align: right;">70<br>
929
+ </td>
930
+ <td style="vertical-align: top; width: 280px;"><br>
931
+ </td>
932
+ <td style="vertical-align: top; width: 50px;">0x1047</td>
933
+ <td style="vertical-align: top;"><br>
934
+ </td>
935
+ </tr>
936
+ <tr>
937
+ <td style="vertical-align: top; width: 24px; text-align: right;">71<br>
938
+ </td>
939
+ <td style="vertical-align: top; width: 280px;"><br>
940
+ </td>
941
+ <td style="vertical-align: top; width: 50px;">0x1048</td>
942
+ <td style="vertical-align: top;"><br>
943
+ </td>
944
+ </tr>
945
+ <tr>
946
+ <td style="vertical-align: top; width: 24px; text-align: right;">72<br>
947
+ </td>
948
+ <td style="vertical-align: top; width: 280px;">HPDF_PAGES_MISSING_KIDS_ENTRY</td>
949
+ <td style="vertical-align: top; width: 50px;">0x1049</td>
950
+ <td style="vertical-align: top;"> Internal error. The consistency
951
+ of the data was lost. </td>
952
+ </tr>
953
+ <tr>
954
+ <td style="vertical-align: top; width: 24px; text-align: right;">73<br>
955
+ </td>
956
+ <td style="vertical-align: top; width: 280px;">HPDF_PAGE_CANNOT_FIND_OBJECT</td>
957
+ <td style="vertical-align: top; width: 50px;">0x104A</td>
958
+ <td style="vertical-align: top;"> Internal error. The consistency
959
+ of the data was lost. </td>
960
+ </tr>
961
+ <tr>
962
+ <td style="vertical-align: top; width: 24px; text-align: right;">74<br>
963
+ </td>
964
+ <td style="vertical-align: top; width: 280px;">HPDF_PAGE_CANNOT_GET_ROOT_PAGES</td>
965
+ <td style="vertical-align: top; width: 50px;">0x104B</td>
966
+ <td style="vertical-align: top;"> Internal error. The consistency
967
+ of the data was lost. </td>
968
+ </tr>
969
+ <tr>
970
+ <td style="vertical-align: top; width: 24px; text-align: right;">75<br>
971
+ </td>
972
+ <td style="vertical-align: top; width: 280px;">HPDF_PAGE_CANNOT_RESTORE_GSTATE</td>
973
+ <td style="vertical-align: top; width: 50px;">0x104C</td>
974
+ <td style="vertical-align: top;">There are no graphics-states to
975
+ be restored.<br>
976
+ </td>
977
+ </tr>
978
+ <tr>
979
+ <td style="vertical-align: top; width: 24px; text-align: right;">76<br>
980
+ </td>
981
+ <td style="vertical-align: top; width: 280px;">HPDF_PAGE_CANNOT_SET_PARENT</td>
982
+ <td style="vertical-align: top; width: 50px;">0x104D</td>
983
+ <td style="vertical-align: top;"> Internal error. The consistency
984
+ of the data was lost. </td>
985
+ </tr>
986
+ <tr>
987
+ <td style="vertical-align: top; width: 24px; text-align: right;">77<br>
988
+ </td>
989
+ <td style="vertical-align: top; width: 280px;">HPDF_PAGE_FONT_NOT_FOUND</td>
990
+ <td style="vertical-align: top; width: 50px;">0x104E</td>
991
+ <td style="vertical-align: top;">The current font is not set.<br>
992
+ </td>
993
+ </tr>
994
+ <tr>
995
+ <td style="vertical-align: top; width: 24px; text-align: right;">78<br>
996
+ </td>
997
+ <td style="vertical-align: top; width: 280px;">HPDF_PAGE_INVALID_FONT</td>
998
+ <td style="vertical-align: top; width: 50px;">0x104F</td>
999
+ <td style="vertical-align: top;">An invalid font-handle was
1000
+ spacified.<br>
1001
+ </td>
1002
+ </tr>
1003
+ <tr>
1004
+ <td style="vertical-align: top; width: 24px; text-align: right;">79<br>
1005
+ </td>
1006
+ <td style="vertical-align: top; width: 280px;">HPDF_PAGE_INVALID_FONT_SIZE</td>
1007
+ <td style="vertical-align: top; width: 50px;">0x1050</td>
1008
+ <td style="vertical-align: top;">An invalid font-size was set.<br>
1009
+ </td>
1010
+ </tr>
1011
+ <tr>
1012
+ <td style="vertical-align: top; width: 24px; text-align: right;">80<br>
1013
+ </td>
1014
+ <td style="vertical-align: top; width: 280px;">HPDF_PAGE_INVALID_GMODE</td>
1015
+ <td style="vertical-align: top; width: 50px;">0x1051</td>
1016
+ <td style="vertical-align: top;">See <a
1017
+ href="graphics.html#Graphics_mode_">Graphics mode</a>.<br>
1018
+ </td>
1019
+ </tr>
1020
+ <tr>
1021
+ <td style="vertical-align: top; width: 24px; text-align: right;">81<br>
1022
+ </td>
1023
+ <td style="vertical-align: top; width: 280px;">HPDF_PAGE_INVALID_INDEX</td>
1024
+ <td style="vertical-align: top; width: 50px;">0x1052</td>
1025
+ <td style="vertical-align: top;"> Internal error. The consistency
1026
+ of the data was lost. </td>
1027
+ </tr>
1028
+ <tr>
1029
+ <td style="vertical-align: top; width: 24px; text-align: right;">82<br>
1030
+ </td>
1031
+ <td style="vertical-align: top; width: 280px;">HPDF_PAGE_INVALID_ROTATE_VALUE</td>
1032
+ <td style="vertical-align: top; width: 50px;">0x1053</td>
1033
+ <td style="vertical-align: top;">The specified value is not a
1034
+ multiple of 90. <br>
1035
+ </td>
1036
+ </tr>
1037
+ <tr>
1038
+ <td style="vertical-align: top; width: 24px; text-align: right;">83<br>
1039
+ </td>
1040
+ <td style="vertical-align: top; width: 280px;">HPDF_PAGE_INVALID_SIZE</td>
1041
+ <td style="vertical-align: top; width: 50px;">0x1054</td>
1042
+ <td style="vertical-align: top;">An invalid page-size was set. </td>
1043
+ </tr>
1044
+ <tr>
1045
+ <td style="vertical-align: top; width: 24px; text-align: right;">84<br>
1046
+ </td>
1047
+ <td style="vertical-align: top; width: 280px;">HPDF_PAGE_INVALID_XOBJECT</td>
1048
+ <td style="vertical-align: top; width: 50px;">0x1055</td>
1049
+ <td style="vertical-align: top;">An invalid image-handle was set.<br>
1050
+ </td>
1051
+ </tr>
1052
+ <tr>
1053
+ <td style="vertical-align: top; width: 24px; text-align: right;">85<br>
1054
+ </td>
1055
+ <td style="vertical-align: top; width: 280px;">HPDF_PAGE_OUT_OF_RANGE</td>
1056
+ <td style="vertical-align: top; width: 50px;">0x1056</td>
1057
+ <td style="vertical-align: top;">The specified value is out of
1058
+ range.<br>
1059
+ </td>
1060
+ </tr>
1061
+ <tr>
1062
+ <td style="vertical-align: top; width: 24px; text-align: right;">86<br>
1063
+ </td>
1064
+ <td style="vertical-align: top; width: 280px;">HPDF_REAL_OUT_OF_RANGE</td>
1065
+ <td style="vertical-align: top; width: 50px;">0x1057</td>
1066
+ <td style="vertical-align: top;">The specified value is out of
1067
+ range. </td>
1068
+ </tr>
1069
+ <tr>
1070
+ <td style="vertical-align: top; width: 24px; text-align: right;">87<br>
1071
+ </td>
1072
+ <td style="vertical-align: top; width: 280px;">HPDF_STREAM_EOF</td>
1073
+ <td style="vertical-align: top; width: 50px;">0x1058</td>
1074
+ <td style="vertical-align: top;">Unexpected EOF marker was
1075
+ detected.<br>
1076
+ </td>
1077
+ </tr>
1078
+ <tr>
1079
+ <td style="vertical-align: top; width: 24px; text-align: right;">88<br>
1080
+ </td>
1081
+ <td style="vertical-align: top; width: 280px;">HPDF_STREAM_READLN_CONTINUE</td>
1082
+ <td style="vertical-align: top; width: 50px;">0x1059</td>
1083
+ <td style="vertical-align: top;"> Internal error. The consistency
1084
+ of the data was lost. </td>
1085
+ </tr>
1086
+ <tr>
1087
+ <td style="vertical-align: top; width: 24px; text-align: right;">89<br>
1088
+ </td>
1089
+ <td style="vertical-align: top; width: 280px;"><br>
1090
+ </td>
1091
+ <td style="vertical-align: top; width: 50px;">0x105A</td>
1092
+ <td style="vertical-align: top;"><br>
1093
+ </td>
1094
+ </tr>
1095
+ <tr>
1096
+ <td style="vertical-align: top; width: 24px; text-align: right;">90<br>
1097
+ </td>
1098
+ <td style="vertical-align: top; width: 280px;">HPDF_STRING_OUT_OF_RANGE</td>
1099
+ <td style="vertical-align: top; width: 50px;">0x105B</td>
1100
+ <td style="vertical-align: top;">The length of the specified text
1101
+ is too long.<br>
1102
+ </td>
1103
+ </tr>
1104
+ <tr>
1105
+ <td style="vertical-align: top; width: 24px; text-align: right;">91<br>
1106
+ </td>
1107
+ <td style="vertical-align: top; width: 280px;">HPDF_THIS_FUNC_WAS_SKIPPED</td>
1108
+ <td style="vertical-align: top; width: 50px;">0x105C</td>
1109
+ <td style="vertical-align: top;">The execution of a function was
1110
+ skipped because of other errors.<br>
1111
+ </td>
1112
+ </tr>
1113
+ <tr>
1114
+ <td style="vertical-align: top; width: 24px; text-align: right;">92<br>
1115
+ </td>
1116
+ <td style="vertical-align: top; width: 280px;">HPDF_TTF_CANNOT_EMBEDDING_FONT</td>
1117
+ <td style="vertical-align: top; width: 50px;">0x105D</td>
1118
+ <td style="vertical-align: top;">This font cannot be embedded.
1119
+ (restricted by license)<br>
1120
+ </td>
1121
+ </tr>
1122
+ <tr>
1123
+ <td style="vertical-align: top; width: 24px; text-align: right;">93<br>
1124
+ </td>
1125
+ <td style="vertical-align: top; width: 280px;">HPDF_TTF_INVALID_CMAP</td>
1126
+ <td style="vertical-align: top; width: 50px;">0x105E</td>
1127
+ <td style="vertical-align: top;">Unsupported ttf format. (cannot
1128
+ find unicode cmap.)<br>
1129
+ </td>
1130
+ </tr>
1131
+ <tr>
1132
+ <td style="vertical-align: top; width: 24px; text-align: right;">94<br>
1133
+ </td>
1134
+ <td style="vertical-align: top; width: 280px;">HPDF_TTF_INVALID_FOMAT</td>
1135
+ <td style="vertical-align: top; width: 50px;">0x105F</td>
1136
+ <td style="vertical-align: top;">Unsupported ttf format. </td>
1137
+ </tr>
1138
+ <tr>
1139
+ <td style="vertical-align: top; width: 24px; text-align: right;">95<br>
1140
+ </td>
1141
+ <td style="vertical-align: top; width: 280px;">HPDF_TTF_MISSING_TABLE</td>
1142
+ <td style="vertical-align: top; width: 50px;">0x1060</td>
1143
+ <td style="vertical-align: top;">Unsupported ttf format. (cannot
1144
+ find a necessary table) </td>
1145
+ </tr>
1146
+ <tr>
1147
+ <td style="vertical-align: top; width: 24px; text-align: right;">96<br>
1148
+ </td>
1149
+ <td style="vertical-align: top; width: 280px;">HPDF_UNSUPPORTED_FONT_TYPE</td>
1150
+ <td style="vertical-align: top; width: 50px;">0x1061</td>
1151
+ <td style="vertical-align: top;"> Internal error. The consistency
1152
+ of the data was lost. </td>
1153
+ </tr>
1154
+ <tr>
1155
+ <td style="vertical-align: top; width: 24px; text-align: right;">97<br>
1156
+ </td>
1157
+ <td style="vertical-align: top; width: 280px;">HPDF_UNSUPPORTED_FUNC</td>
1158
+ <td style="vertical-align: top; width: 50px;">0x1062</td>
1159
+ <td style="vertical-align: top;"> 1. The library is not
1160
+ configured to use PNGLIB.<br>
1161
+ 2. Internal error. The consistency of the data was lost.</td>
1162
+ </tr>
1163
+ <tr>
1164
+ <td style="vertical-align: top; width: 24px; text-align: right;">98<br>
1165
+ </td>
1166
+ <td style="vertical-align: top; width: 280px;">HPDF_UNSUPPORTED_JPEG_FORMAT</td>
1167
+ <td style="vertical-align: top; width: 50px;">0x1063</td>
1168
+ <td style="vertical-align: top;">Unsupported Jpeg format. </td>
1169
+ </tr>
1170
+ <tr>
1171
+ <td style="vertical-align: top; width: 24px; text-align: right;">99<br>
1172
+ </td>
1173
+ <td style="vertical-align: top; width: 280px;">HPDF_UNSUPPORTED_TYPE1_FONT</td>
1174
+ <td style="vertical-align: top; width: 50px;">0x1064</td>
1175
+ <td style="vertical-align: top;">Failed to parse .PFB file.<br>
1176
+ </td>
1177
+ </tr>
1178
+ <tr>
1179
+ <td style="vertical-align: top; width: 24px; text-align: right;">100<br>
1180
+ </td>
1181
+ <td style="vertical-align: top; width: 280px;">HPDF_XREF_COUNT_ERR</td>
1182
+ <td style="vertical-align: top; width: 50px;">0x1065</td>
1183
+ <td style="vertical-align: top;">Internal error. The consistency
1184
+ of the data was lost. </td>
1185
+ </tr>
1186
+ <tr>
1187
+ <td style="vertical-align: top; width: 24px; text-align: right;">101<br>
1188
+ </td>
1189
+ <td style="vertical-align: top; width: 280px;">HPDF_ZLIB_ERROR</td>
1190
+ <td style="vertical-align: top; width: 50px;">0x1066</td>
1191
+ <td style="vertical-align: top;">An error has occurred while
1192
+ executing a function of Zlib.<br>
1193
+ </td>
1194
+ </tr>
1195
+ <tr>
1196
+ <td style="vertical-align: top; width: 24px; text-align: right;">102<br>
1197
+ </td>
1198
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_PAGE_INDEX</td>
1199
+ <td style="vertical-align: top; width: 50px;">0x1067</td>
1200
+ <td style="vertical-align: top;">An error returned from Zlib.<br>
1201
+ </td>
1202
+ </tr>
1203
+ <tr>
1204
+ <td style="vertical-align: top; width: 24px; text-align: right;">103<br>
1205
+ </td>
1206
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_URI</td>
1207
+ <td style="vertical-align: top; width: 50px;">0x1068</td>
1208
+ <td style="vertical-align: top;">An invalid URI was set.<br>
1209
+ </td>
1210
+ </tr>
1211
+ <tr>
1212
+ <td style="vertical-align: top; width: 24px; text-align: right;">104<br>
1213
+ </td>
1214
+ <td style="vertical-align: top; width: 280px;">HPDF_PAGELAYOUT_OUT_OF_RANGE</td>
1215
+ <td style="vertical-align: top; width: 50px;">0x1069</td>
1216
+ <td style="vertical-align: top;">An invalid page-layout was set.<br>
1217
+ </td>
1218
+ </tr>
1219
+ <tr>
1220
+ <td style="vertical-align: top; width: 24px; text-align: right;">105<br>
1221
+ </td>
1222
+ <td style="vertical-align: top; width: 280px;">HPDF_PAGEMODE_OUT_OF_RANGE</td>
1223
+ <td style="vertical-align: top; width: 50px;">0x1070</td>
1224
+ <td style="vertical-align: top;">An invalid page-mode was set.<br>
1225
+ </td>
1226
+ </tr>
1227
+ <tr>
1228
+ <td style="vertical-align: top; width: 24px; text-align: right;">106<br>
1229
+ </td>
1230
+ <td style="vertical-align: top; width: 280px;">HPDF_PAGENUM_STYLE_OUT_OF_RANGE</td>
1231
+ <td style="vertical-align: top; width: 50px;">0x1071</td>
1232
+ <td style="vertical-align: top;">An invalid page-num-style was
1233
+ set.<br>
1234
+ </td>
1235
+ </tr>
1236
+ <tr>
1237
+ <td style="vertical-align: top; width: 24px; text-align: right;">107<br>
1238
+ </td>
1239
+ <td style="vertical-align: top; width: 280px;">HPDF_ANNOT_INVALID_ICON</td>
1240
+ <td style="vertical-align: top; width: 50px;">0x1072</td>
1241
+ <td style="vertical-align: top;">An invalid icon was set.<br>
1242
+ </td>
1243
+ </tr>
1244
+ <tr>
1245
+ <td style="vertical-align: top; width: 24px; text-align: right;">108<br>
1246
+ </td>
1247
+ <td style="vertical-align: top; width: 280px;">HPDF_ANNOT_INVALID_BORDER_STYLE</td>
1248
+ <td style="vertical-align: top; width: 50px;">0x1073</td>
1249
+ <td style="vertical-align: top;">An invalid border-style was set.<br>
1250
+ </td>
1251
+ </tr>
1252
+ <tr>
1253
+ <td style="vertical-align: top; width: 24px; text-align: right;">109<br>
1254
+ </td>
1255
+ <td style="vertical-align: top; width: 280px;">HPDF_PAGE_INVALID_DIRECTION</td>
1256
+ <td style="vertical-align: top; width: 50px;">0x1074</td>
1257
+ <td style="vertical-align: top;">An invalid page-direction was
1258
+ set.<br>
1259
+ </td>
1260
+ </tr>
1261
+ <tr>
1262
+ <td style="vertical-align: top; width: 24px; text-align: right;">110<br>
1263
+ </td>
1264
+ <td style="vertical-align: top; width: 280px;">HPDF_INVALID_FONT</td>
1265
+ <td style="vertical-align: top; width: 50px;">0x1075</td>
1266
+ <td style="vertical-align: top;">An invalid font-handle was
1267
+ specified.<br>
1268
+ </td>
1269
+ </tr>
1270
+ </tbody>
1271
+ </table>
1272
+ <br>
1273
+ </div>
1274
+ <br>
1275
+ <br>
1276
+ <br>
1277
+ <br>
1278
+ <br>
1279
+ <br>
1280
+ <br>
1281
+ <br>
1282
+ <br>
1283
+ <br>
1284
+ </div>
1285
+ </div>
1286
+ <div id="lcol">
1287
+ <div class="sidebar">
1288
+ <ul>
1289
+ </ul>
1290
+ <ul>
1291
+ <li> <a href="#The_type_of_functions_">The type of functions</a> </li>
1292
+ <li><a href="#User-defined_error_handler_">User-defined error handler</a><br>
1293
+ </li>
1294
+ <li><a href="#Effective_usage_of_a_user-defined_error_">Effective
1295
+ usage of a user-defined error handler</a></li>
1296
+ <li><a href="#Finalization_and_cleanup_">Finalization and cleanup</a></li>
1297
+ <li><a href="#The_list_of_error_code_">List of Error Code</a><br>
1298
+ </li>
1299
+ </ul>
1300
+ <ul>
1301
+ </ul>
1302
+ <br>
1303
+ <br>
1304
+ <br>
1305
+ <br>
1306
+ <br>
1307
+ <br>
1308
+ <br>
1309
+ <br>
1310
+ <br>
1311
+ <br>
1312
+ <br>
1313
+ <br>
1314
+ <br>
1315
+ <br>
1316
+ <br>
1317
+ <br>
1318
+ <br>
1319
+ <br>
1320
+ <br>
1321
+ <br>
1322
+ <br>
1323
+ <br>
1324
+ <br>
1325
+ <br>
1326
+ <br>
1327
+ <br>
1328
+ <br>
1329
+ <br>
1330
+ <br>
1331
+ <br>
1332
+ <br>
1333
+ <br>
1334
+ <br>
1335
+ <br>
1336
+ <br>
1337
+ <br>
1338
+ <br>
1339
+ <br>
1340
+ <br>
1341
+ <br>
1342
+ <br>
1343
+ <br>
1344
+ <br>
1345
+ <br>
1346
+ <br>
1347
+ <br>
1348
+ <br>
1349
+ <br>
1350
+ <br>
1351
+ <br>
1352
+ <br>
1353
+ <br>
1354
+ <br>
1355
+ <br>
1356
+ <br>
1357
+ <br>
1358
+ <br>
1359
+ <br>
1360
+ <br>
1361
+ <br>
1362
+ <br>
1363
+ <br>
1364
+ <br>
1365
+ <br>
1366
+ <br>
1367
+ <br>
1368
+ <br>
1369
+ <br>
1370
+ <br>
1371
+ <br>
1372
+ <br>
1373
+ <br>
1374
+ <br>
1375
+ <br>
1376
+ <br>
1377
+ <br>
1378
+ <br>
1379
+ <br>
1380
+ <br>
1381
+ <br>
1382
+ <br>
1383
+ <br>
1384
+ <br>
1385
+ <br>
1386
+ <br>
1387
+ <br>
1388
+ <br>
1389
+ <br>
1390
+ <br>
1391
+ <br>
1392
+ <br>
1393
+ <br>
1394
+ <br>
1395
+ <br>
1396
+ <br>
1397
+ <br>
1398
+ <br>
1399
+ <br>
1400
+ <br>
1401
+ <br>
1402
+ <br>
1403
+ <br>
1404
+ <br>
1405
+ <br>
1406
+ <br>
1407
+ <br>
1408
+ <br>
1409
+ <br>
1410
+ <br>
1411
+ <br>
1412
+ <br>
1413
+ <br>
1414
+ <br>
1415
+ <br>
1416
+ <br>
1417
+ <br>
1418
+ <br>
1419
+ <br>
1420
+ <br>
1421
+ <br>
1422
+ <br>
1423
+ <br>
1424
+ <br>
1425
+ <br>
1426
+ <br>
1427
+ <br>
1428
+ <br>
1429
+ <br>
1430
+ <br>
1431
+ <br>
1432
+ <br>
1433
+ <br>
1434
+ <br>
1435
+ <br>
1436
+ <br>
1437
+ <br>
1438
+ <br>
1439
+ <br>
1440
+ <br>
1441
+ <br>
1442
+ <br>
1443
+ <br>
1444
+ <br>
1445
+ <br>
1446
+ <br>
1447
+ <br>
1448
+ <br>
1449
+ <br>
1450
+ <br>
1451
+ <br>
1452
+ <br>
1453
+ <br>
1454
+ <br>
1455
+ <br>
1456
+ <br>
1457
+ <br>
1458
+ <br>
1459
+ <br>
1460
+ <br>
1461
+ <br>
1462
+ <br>
1463
+ <br>
1464
+ <br>
1465
+ <br>
1466
+ <br>
1467
+ <br>
1468
+ <br>
1469
+ <br>
1470
+ <br>
1471
+ <br>
1472
+ <br>
1473
+ <br>
1474
+ <br>
1475
+ <br>
1476
+ <br>
1477
+ <br>
1478
+ <br>
1479
+ <br>
1480
+ <br>
1481
+ <br>
1482
+ <br>
1483
+ <br>
1484
+ <br>
1485
+ <br>
1486
+ <br>
1487
+ <br>
1488
+ <br>
1489
+ <br>
1490
+ <br>
1491
+ <br>
1492
+ <br>
1493
+ <br>
1494
+ <br>
1495
+ <br>
1496
+ <br>
1497
+ <br>
1498
+ <br>
1499
+ <br>
1500
+ <br>
1501
+ <br>
1502
+ <br>
1503
+ <br>
1504
+ <br>
1505
+ <br>
1506
+ <br>
1507
+ <br>
1508
+ <br>
1509
+ <br>
1510
+ <br>
1511
+ <br>
1512
+ <br>
1513
+ <br>
1514
+ <br>
1515
+ <br>
1516
+ <br>
1517
+ <br>
1518
+ <br>
1519
+ <br>
1520
+ <br>
1521
+ <br>
1522
+ <br>
1523
+ <br>
1524
+ <br>
1525
+ <br>
1526
+ <br>
1527
+ <br>
1528
+ <br>
1529
+ <br>
1530
+ <br>
1531
+ <br>
1532
+ <br>
1533
+ <br>
1534
+ <br>
1535
+ <br>
1536
+ <br>
1537
+ <br>
1538
+ <br>
1539
+ <br>
1540
+ <br>
1541
+ <br>
1542
+ <br>
1543
+ <br>
1544
+ <br>
1545
+ <br>
1546
+ <br>
1547
+ <br>
1548
+ <br>
1549
+ <br>
1550
+ <br>
1551
+ <br>
1552
+ <br>
1553
+ <br>
1554
+ <br>
1555
+ <br>
1556
+ <br>
1557
+ <br>
1558
+ <br>
1559
+ <br>
1560
+ <br>
1561
+ <br>
1562
+ <br>
1563
+ <br>
1564
+ <br>
1565
+ <br>
1566
+ <br>
1567
+ <br>
1568
+ <br>
1569
+ <br>
1570
+ <br>
1571
+ <br>
1572
+ <br>
1573
+ <br>
1574
+ <br>
1575
+ <br>
1576
+ <br>
1577
+ <br>
1578
+ <br>
1579
+ <br>
1580
+ <br>
1581
+ <br>
1582
+ <br>
1583
+ <br>
1584
+ <br>
1585
+ <br>
1586
+ <br>
1587
+ <br>
1588
+ <br>
1589
+ <br>
1590
+ <br>
1591
+ <br>
1592
+ <br>
1593
+ <br>
1594
+ <br>
1595
+ </div>
1596
+ </div>
1597
+ <br>
1598
+ <br>
1599
+ <br>
1600
+ <br>
1601
+ <br>
1602
+ <br>
1603
+ <br>
1604
+ <br>
1605
+ <br>
1606
+ <br>
1607
+ </div>
1608
+ </body>
1609
+ </html>