hpdf 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. data/History +57 -0
  2. data/License +25 -0
  3. data/README +165 -0
  4. data/examples/arc_demo.rb +82 -0
  5. data/examples/demo.rb +92 -0
  6. data/examples/encryption.rb +41 -0
  7. data/examples/ext_gstater_demo.rb +171 -0
  8. data/examples/font_demo.rb +67 -0
  9. data/examples/jpfont_demo.rb +122 -0
  10. data/examples/line_demo.rb +301 -0
  11. data/examples/slide_show_demo.rb +139 -0
  12. data/examples/text_demo2.rb +189 -0
  13. data/examples/ttfont_demo.rb +106 -0
  14. data/ext/extconf.rb +6 -0
  15. data/ext/hpdf.c +3779 -0
  16. data/ext/hpdf_annotation.c +415 -0
  17. data/ext/hpdf_array.c +344 -0
  18. data/ext/hpdf_binary.c +117 -0
  19. data/ext/hpdf_boolean.c +47 -0
  20. data/ext/hpdf_catalog.c +354 -0
  21. data/ext/hpdf_destination.c +339 -0
  22. data/ext/hpdf_dict.c +488 -0
  23. data/ext/hpdf_doc.c +2020 -0
  24. data/ext/hpdf_doc_png.c +137 -0
  25. data/ext/hpdf_encoder.c +2991 -0
  26. data/ext/hpdf_encoder_cns.c +36359 -0
  27. data/ext/hpdf_encoder_cnt.c +15307 -0
  28. data/ext/hpdf_encoder_jp.c +16125 -0
  29. data/ext/hpdf_encoder_kr.c +27978 -0
  30. data/ext/hpdf_encrypt.c +632 -0
  31. data/ext/hpdf_encryptdict.c +240 -0
  32. data/ext/hpdf_error.c +114 -0
  33. data/ext/hpdf_ext_gstate.c +150 -0
  34. data/ext/hpdf_font.c +229 -0
  35. data/ext/hpdf_font_cid.c +1030 -0
  36. data/ext/hpdf_font_tt.c +406 -0
  37. data/ext/hpdf_font_type1.c +391 -0
  38. data/ext/hpdf_fontdef.c +56 -0
  39. data/ext/hpdf_fontdef_base14.c +4506 -0
  40. data/ext/hpdf_fontdef_cid.c +194 -0
  41. data/ext/hpdf_fontdef_cns.c +471 -0
  42. data/ext/hpdf_fontdef_cnt.c +250 -0
  43. data/ext/hpdf_fontdef_jp.c +1904 -0
  44. data/ext/hpdf_fontdef_kr.c +1572 -0
  45. data/ext/hpdf_fontdef_tt.c +2230 -0
  46. data/ext/hpdf_fontdef_type1.c +524 -0
  47. data/ext/hpdf_gstate.c +119 -0
  48. data/ext/hpdf_image.c +568 -0
  49. data/ext/hpdf_image_png.c +424 -0
  50. data/ext/hpdf_info.c +164 -0
  51. data/ext/hpdf_list.c +333 -0
  52. data/ext/hpdf_mmgr.c +243 -0
  53. data/ext/hpdf_name.c +71 -0
  54. data/ext/hpdf_null.c +31 -0
  55. data/ext/hpdf_number.c +49 -0
  56. data/ext/hpdf_objects.c +172 -0
  57. data/ext/hpdf_outline.c +329 -0
  58. data/ext/hpdf_page_label.c +74 -0
  59. data/ext/hpdf_page_operator.c +2764 -0
  60. data/ext/hpdf_pages.c +1508 -0
  61. data/ext/hpdf_real.c +61 -0
  62. data/ext/hpdf_streams.c +1435 -0
  63. data/ext/hpdf_string.c +189 -0
  64. data/ext/hpdf_utils.c +438 -0
  65. data/ext/hpdf_xref.c +348 -0
  66. data/ext/include/hpdf.h +1227 -0
  67. data/ext/include/hpdf_annotation.h +74 -0
  68. data/ext/include/hpdf_catalog.h +81 -0
  69. data/ext/include/hpdf_conf.h +76 -0
  70. data/ext/include/hpdf_consts.h +549 -0
  71. data/ext/include/hpdf_destination.h +41 -0
  72. data/ext/include/hpdf_doc.h +159 -0
  73. data/ext/include/hpdf_encoder.h +311 -0
  74. data/ext/include/hpdf_encrypt.h +156 -0
  75. data/ext/include/hpdf_encryptdict.h +66 -0
  76. data/ext/include/hpdf_error.h +201 -0
  77. data/ext/include/hpdf_ext_gstate.h +38 -0
  78. data/ext/include/hpdf_font.h +112 -0
  79. data/ext/include/hpdf_fontdef.h +403 -0
  80. data/ext/include/hpdf_gstate.h +80 -0
  81. data/ext/include/hpdf_image.h +72 -0
  82. data/ext/include/hpdf_info.h +48 -0
  83. data/ext/include/hpdf_list.h +85 -0
  84. data/ext/include/hpdf_mmgr.h +82 -0
  85. data/ext/include/hpdf_objects.h +587 -0
  86. data/ext/include/hpdf_outline.h +74 -0
  87. data/ext/include/hpdf_page_label.h +35 -0
  88. data/ext/include/hpdf_pages.h +128 -0
  89. data/ext/include/hpdf_streams.h +276 -0
  90. data/ext/include/hpdf_types.h +488 -0
  91. data/ext/include/hpdf_utils.h +161 -0
  92. data/tests/arc_demo.rb +82 -0
  93. data/tests/demo.rb +91 -0
  94. data/tests/encryption.rb +41 -0
  95. data/tests/ext_gstater_demo.rb +171 -0
  96. data/tests/font_demo.rb +67 -0
  97. data/tests/line_demo.rb +301 -0
  98. data/tests/slide_show_demo.rb +139 -0
  99. data/tests/test_all_examples.rb +31 -0
  100. data/tests/text_demo2.rb +189 -0
  101. metadata +147 -0
@@ -0,0 +1,488 @@
1
+ /*
2
+ * << Haru Free PDF Library 2.0.3 >> -- hpdf_types.h
3
+ *
4
+ * URL http://libharu.sourceforge.net/
5
+ *
6
+ * Copyright (c) 1999-2006 Takeshi Kanno
7
+ *
8
+ * Permission to use, copy, modify, distribute and sell this software
9
+ * and its documentation for any purpose is hereby granted without fee,
10
+ * provided that the above copyright notice appear in all copies and
11
+ * that both that copyright notice and this permission notice appear
12
+ * in supporting documentation.
13
+ * It is provided "as is" without express or implied warranty.
14
+ *
15
+ */
16
+
17
+ #ifndef _HPDF_TYPES_H
18
+ #define _HPDF_TYPES_H
19
+
20
+ #ifndef HPDF_STDCALL
21
+ #ifdef HPDF_DLL_MAKE
22
+ #define HPDF_STDCALL __stdcall
23
+ #else
24
+ #ifdef HPDF_DLL
25
+ #define HPDF_STDCALL __stdcall
26
+ #else
27
+ #define HPDF_STDCALL
28
+ #endif
29
+ #endif
30
+ #endif
31
+
32
+ #include <stdlib.h>
33
+
34
+ #ifdef __cplusplus
35
+ extern "C" {
36
+ #endif
37
+
38
+ /*----------------------------------------------------------------------------*/
39
+ /*----- type definition ------------------------------------------------------*/
40
+
41
+
42
+ /* native OS integer types */
43
+ typedef signed int HPDF_INT;
44
+ typedef unsigned int HPDF_UINT;
45
+
46
+
47
+ /* 32bit integer types
48
+ */
49
+ typedef signed int HPDF_INT32;
50
+ typedef unsigned int HPDF_UINT32;
51
+
52
+
53
+ /* 16bit integer types
54
+ */
55
+ typedef signed short HPDF_INT16;
56
+ typedef unsigned short HPDF_UINT16;
57
+
58
+
59
+ /* 8bit integer types
60
+ */
61
+ typedef signed char HPDF_INT8;
62
+ typedef unsigned char HPDF_UINT8;
63
+
64
+
65
+ /* 8bit binary types
66
+ */
67
+ typedef unsigned char HPDF_BYTE;
68
+
69
+
70
+ /* float type (32bit IEEE754)
71
+ */
72
+ typedef float HPDF_REAL;
73
+
74
+
75
+ /* double type (64bit IEEE754)
76
+ */
77
+ typedef double HPDF_DOUBLE;
78
+
79
+
80
+ /* boolean type (0: False, !0: True)
81
+ */
82
+ typedef signed int HPDF_BOOL;
83
+
84
+
85
+ /* error-no type (32bit unsigned integer)
86
+ */
87
+ typedef unsigned long HPDF_STATUS;
88
+
89
+
90
+ /* charactor-code type (16bit)
91
+ */
92
+ typedef HPDF_UINT16 HPDF_CID;
93
+ typedef HPDF_UINT16 HPDF_UNICODE;
94
+
95
+
96
+ /* HPDF_Point struct
97
+ */
98
+ typedef struct _HPDF_Point {
99
+ HPDF_REAL x;
100
+ HPDF_REAL y;
101
+ } HPDF_Point;
102
+
103
+ typedef struct _HPDF_Rect {
104
+ HPDF_REAL left;
105
+ HPDF_REAL bottom;
106
+ HPDF_REAL right;
107
+ HPDF_REAL top;
108
+ } HPDF_Rect;
109
+
110
+ typedef struct _HPDF_Rect HPDF_Box;
111
+
112
+ /* HPDF_Date struct
113
+ */
114
+ typedef struct _HPDF_Date {
115
+ HPDF_INT year;
116
+ HPDF_INT month;
117
+ HPDF_INT day;
118
+ HPDF_INT hour;
119
+ HPDF_INT minutes;
120
+ HPDF_INT seconds;
121
+ char ind;
122
+ HPDF_INT off_hour;
123
+ HPDF_INT off_minutes;
124
+ } HPDF_Date;
125
+
126
+
127
+ typedef enum _HPDF_InfoType {
128
+ /* date-time type parameters */
129
+ HPDF_INFO_CREATION_DATE = 0,
130
+ HPDF_INFO_MOD_DATE,
131
+
132
+ /* string type parameters */
133
+ HPDF_INFO_AUTHOR,
134
+ HPDF_INFO_CREATOR,
135
+ HPDF_INFO_PRODUCER,
136
+ HPDF_INFO_TITLE,
137
+ HPDF_INFO_SUBJECT,
138
+ HPDF_INFO_KEYWORDS,
139
+ HPDF_INFO_EOF
140
+ } HPDF_InfoType;
141
+
142
+
143
+ typedef enum _HPDF_PdfVer {
144
+ HPDF_VER_12 = 0,
145
+ HPDF_VER_13,
146
+ HPDF_VER_14,
147
+ HPDF_VER_15,
148
+ HPDF_VER_16,
149
+ HPDF_VER_EOF
150
+ } HPDF_PDFVer;
151
+
152
+ typedef enum _HPDF_EncryptMode {
153
+ HPDF_ENCRYPT_R2 = 2,
154
+ HPDF_ENCRYPT_R3 = 3
155
+ } HPDF_EncryptMode;
156
+
157
+
158
+ typedef void
159
+ (HPDF_STDCALL *HPDF_Error_Handler) (HPDF_STATUS error_no,
160
+ HPDF_STATUS detail_no,
161
+ void *user_data);
162
+
163
+ typedef void*
164
+ (HPDF_STDCALL *HPDF_Alloc_Func) (HPDF_UINT size);
165
+
166
+
167
+ typedef void
168
+ (HPDF_STDCALL *HPDF_Free_Func) (void *aptr);
169
+
170
+
171
+ /*---------------------------------------------------------------------------*/
172
+ /*------ text width struct --------------------------------------------------*/
173
+
174
+ typedef struct _HPDF_TextWidth {
175
+ HPDF_UINT numchars;
176
+
177
+ /* don't use this value (it may be change in the feature).
178
+ use numspace as alternated. */
179
+ HPDF_UINT numwords;
180
+
181
+ HPDF_UINT width;
182
+ HPDF_UINT numspace;
183
+ } HPDF_TextWidth;
184
+
185
+
186
+ /*---------------------------------------------------------------------------*/
187
+ /*------ dash mode ----------------------------------------------------------*/
188
+
189
+ typedef struct _HPDF_DashMode {
190
+ HPDF_UINT16 ptn[8];
191
+ HPDF_UINT num_ptn;
192
+ HPDF_UINT phase;
193
+ } HPDF_DashMode;
194
+
195
+
196
+ /*---------------------------------------------------------------------------*/
197
+ /*----- HPDF_TransMatrix struct ---------------------------------------------*/
198
+
199
+ typedef struct _HPDF_TransMatrix {
200
+ HPDF_REAL a;
201
+ HPDF_REAL b;
202
+ HPDF_REAL c;
203
+ HPDF_REAL d;
204
+ HPDF_REAL x;
205
+ HPDF_REAL y;
206
+ } HPDF_TransMatrix;
207
+
208
+
209
+ /*---------------------------------------------------------------------------*/
210
+
211
+ typedef enum _HPDF_ColorSpace {
212
+ HPDF_CS_DEVICE_GRAY = 0,
213
+ HPDF_CS_DEVICE_RGB,
214
+ HPDF_CS_DEVICE_CMYK,
215
+ HPDF_CS_CAL_GRAY,
216
+ HPDF_CS_CAL_RGB,
217
+ HPDF_CS_LAB,
218
+ HPDF_CS_ICC_BASED,
219
+ HPDF_CS_SEPARATION,
220
+ HPDF_CS_DEVICE_N,
221
+ HPDF_CS_INDEXED,
222
+ HPDF_CS_PATTERN,
223
+ HPDF_CS_EOF
224
+ } HPDF_ColorSpace;
225
+
226
+ /*---------------------------------------------------------------------------*/
227
+ /*----- HPDF_RGBColor struct ------------------------------------------------*/
228
+
229
+ typedef struct _HPDF_RGBColor {
230
+ HPDF_REAL r;
231
+ HPDF_REAL g;
232
+ HPDF_REAL b;
233
+ } HPDF_RGBColor;
234
+
235
+ /*---------------------------------------------------------------------------*/
236
+ /*----- HPDF_CMYKColor struct -----------------------------------------------*/
237
+
238
+ typedef struct _HPDF_CMYKColor {
239
+ HPDF_REAL c;
240
+ HPDF_REAL m;
241
+ HPDF_REAL y;
242
+ HPDF_REAL k;
243
+ } HPDF_CMYKColor;
244
+
245
+ /*---------------------------------------------------------------------------*/
246
+ /*------ The line cap style -------------------------------------------------*/
247
+
248
+ typedef enum _HPDF_LineCap {
249
+ HPDF_BUTT_END = 0,
250
+ HPDF_ROUND_END,
251
+ HPDF_PROJECTING_SCUARE_END,
252
+ HPDF_LINECAP_EOF
253
+ } HPDF_LineCap;
254
+
255
+ /*----------------------------------------------------------------------------*/
256
+ /*------ The line join style -------------------------------------------------*/
257
+
258
+ typedef enum _HPDF_LineJoin {
259
+ HPDF_MITER_JOIN = 0,
260
+ HPDF_ROUND_JOIN,
261
+ HPDF_BEVEL_JOIN,
262
+ HPDF_LINEJOIN_EOF
263
+ } HPDF_LineJoin;
264
+
265
+ /*----------------------------------------------------------------------------*/
266
+ /*------ The text rendering mode ---------------------------------------------*/
267
+
268
+ typedef enum _HPDF_TextRenderingMode {
269
+ HPDF_FILL = 0,
270
+ HPDF_STROKE,
271
+ HPDF_FILL_THEN_STROKE,
272
+ HPDF_INVISIBLE,
273
+ HPDF_FILL_CLIPPING,
274
+ HPDF_STROKE_CLIPPING,
275
+ HPDF_FILL_STROKE_CLIPPING,
276
+ HPDF_CLIPPING,
277
+ HPDF_RENDERING_MODE_EOF
278
+ } HPDF_TextRenderingMode;
279
+
280
+
281
+ typedef enum _HPDF_WritingMode {
282
+ HPDF_WMODE_HORIZONTAL = 0,
283
+ HPDF_WMODE_VERTICAL,
284
+ HPDF_WMODE_EOF
285
+ } HPDF_WritingMode;
286
+
287
+
288
+ typedef enum _HPDF_PageLayout {
289
+ HPDF_PAGE_LAYOUT_SINGLE = 0,
290
+ HPDF_PAGE_LAYOUT_ONE_COLUMN,
291
+ HPDF_PAGE_LAYOUT_TWO_COLUMN_LEFT,
292
+ HPDF_PAGE_LAYOUT_TWO_COLUMN_RIGHT,
293
+ HPDF_PAGE_LAYOUT_EOF
294
+ } HPDF_PageLayout;
295
+
296
+
297
+ typedef enum _HPDF_PageMode {
298
+ HPDF_PAGE_MODE_USE_NONE = 0,
299
+ HPDF_PAGE_MODE_USE_OUTLINE,
300
+ HPDF_PAGE_MODE_USE_THUMBS,
301
+ HPDF_PAGE_MODE_FULL_SCREEN,
302
+ /* HPDF_PAGE_MODE_USE_OC,
303
+ HPDF_PAGE_MODE_USE_ATTACHMENTS,
304
+ */
305
+ HPDF_PAGE_MODE_EOF
306
+ } HPDF_PageMode;
307
+
308
+
309
+ typedef enum _HPDF_PageNumStyle {
310
+ HPDF_PAGE_NUM_STYLE_DECIMAL = 0,
311
+ HPDF_PAGE_NUM_STYLE_UPPER_ROMAN,
312
+ HPDF_PAGE_NUM_STYLE_LOWER_ROMAN,
313
+ HPDF_PAGE_NUM_STYLE_UPPER_LETTERS,
314
+ HPDF_PAGE_NUM_STYLE_LOWER_LETTERS,
315
+ HPDF_PAGE_NUM_STYLE_EOF
316
+ } HPDF_PageNumStyle;
317
+
318
+
319
+ typedef enum _HPDF_DestinationType {
320
+ HPDF_XYZ = 0,
321
+ HPDF_FIT,
322
+ HPDF_FIT_H,
323
+ HPDF_FIT_V,
324
+ HPDF_FIT_R,
325
+ HPDF_FIT_B,
326
+ HPDF_FIT_BH,
327
+ HPDF_FIT_BV,
328
+ HPDF_DST_EOF
329
+ } HPDF_DestinationType;
330
+
331
+
332
+ typedef enum _HPDF_AnnotType {
333
+ HPDF_ANNOT_TEXT_NOTES,
334
+ HPDF_ANNOT_LINK,
335
+ HPDF_ANNOT_SOUND,
336
+ HPDF_ANNOT_FREE_TEXT,
337
+ HPDF_ANNOT_STAMP,
338
+ HPDF_ANNOT_SQUARE,
339
+ HPDF_ANNOT_CIRCLE,
340
+ HPDF_ANNOT_STRIKE_OUT,
341
+ HPDF_ANNOT_HIGHTLIGHT,
342
+ HPDF_ANNOT_UNDERLINE,
343
+ HPDF_ANNOT_INK,
344
+ HPDF_ANNOT_FILE_ATTACHMENT,
345
+ HPDF_ANNOT_POPUP
346
+ } HPDF_AnnotType;
347
+
348
+
349
+ typedef enum _HPDF_AnnotFlgs {
350
+ HPDF_ANNOT_INVISIBLE,
351
+ HPDF_ANNOT_HIDDEN,
352
+ HPDF_ANNOT_PRINT,
353
+ HPDF_ANNOT_NOZOOM,
354
+ HPDF_ANNOT_NOROTATE,
355
+ HPDF_ANNOT_NOVIEW,
356
+ HPDF_ANNOT_READONLY
357
+ } HPDF_AnnotFlgs;
358
+
359
+
360
+ typedef enum _HPDF_AnnotHighlightMode {
361
+ HPDF_ANNOT_NO_HIGHTLIGHT = 0,
362
+ HPDF_ANNOT_INVERT_BOX,
363
+ HPDF_ANNOT_INVERT_BORDER,
364
+ HPDF_ANNOT_DOWN_APPEARANCE,
365
+ HPDF_ANNOT_HIGHTLIGHT_MODE_EOF
366
+ } HPDF_AnnotHighlightMode;
367
+
368
+
369
+ typedef enum _HPDF_AnnotIcon {
370
+ HPDF_ANNOT_ICON_COMMENT = 0,
371
+ HPDF_ANNOT_ICON_KEY,
372
+ HPDF_ANNOT_ICON_NOTE,
373
+ HPDF_ANNOT_ICON_HELP,
374
+ HPDF_ANNOT_ICON_NEW_PARAGRAPH,
375
+ HPDF_ANNOT_ICON_PARAGRAPH,
376
+ HPDF_ANNOT_ICON_INSERT,
377
+ HPDF_ANNOT_ICON_EOF
378
+ } HPDF_AnnotIcon;
379
+
380
+
381
+
382
+ /*----------------------------------------------------------------------------*/
383
+ /*------ border stype --------------------------------------------------------*/
384
+
385
+ typedef enum _HPDF_BSSubtype {
386
+ HPDF_BS_SOLID,
387
+ HPDF_BS_DASHED,
388
+ HPDF_BS_BEVELED,
389
+ HPDF_BS_INSET,
390
+ HPDF_BS_UNDERLINED
391
+ } HPDF_BSSubtype;
392
+
393
+
394
+ /*----- blend modes ----------------------------------------------------------*/
395
+
396
+ typedef enum _HPDF_BlendMode {
397
+ HPDF_BM_NORMAL,
398
+ HPDF_BM_MULTIPLY,
399
+ HPDF_BM_SCREEN,
400
+ HPDF_BM_OVERLAY,
401
+ HPDF_BM_DARKEN,
402
+ HPDF_BM_LIGHTEN,
403
+ HPDF_BM_COLOR_DODGE,
404
+ HPDF_BM_COLOR_BUM,
405
+ HPDF_BM_HARD_LIGHT,
406
+ HPDF_BM_SOFT_LIGHT,
407
+ HPDF_BM_DIFFERENCE,
408
+ HPDF_BM_EXCLUSHON,
409
+ HPDF_BM_EOF
410
+ } HPDF_BlendMode;
411
+
412
+ /*----- slide show -----------------------------------------------------------*/
413
+
414
+ typedef enum _HPDF_TransitionStyle {
415
+ HPDF_TS_WIPE_RIGHT = 0,
416
+ HPDF_TS_WIPE_UP,
417
+ HPDF_TS_WIPE_LEFT,
418
+ HPDF_TS_WIPE_DOWN,
419
+ HPDF_TS_BARN_DOORS_HORIZONTAL_OUT,
420
+ HPDF_TS_BARN_DOORS_HORIZONTAL_IN,
421
+ HPDF_TS_BARN_DOORS_VERTICAL_OUT,
422
+ HPDF_TS_BARN_DOORS_VERTICAL_IN,
423
+ HPDF_TS_BOX_OUT,
424
+ HPDF_TS_BOX_IN,
425
+ HPDF_TS_BLINDS_HORIZONTAL,
426
+ HPDF_TS_BLINDS_VERTICAL,
427
+ HPDF_TS_DISSOLVE,
428
+ HPDF_TS_GLITTER_RIGHT,
429
+ HPDF_TS_GLITTER_DOWN,
430
+ HPDF_TS_GLITTER_TOP_LEFT_TO_BOTTOM_RIGHT,
431
+ HPDF_TS_REPLACE,
432
+ HPDF_TS_EOF
433
+ } HPDF_TransitionStyle;
434
+
435
+ /*----------------------------------------------------------------------------*/
436
+
437
+ typedef enum _HPDF_PageSizes {
438
+ HPDF_PAGE_SIZE_LETTER = 0,
439
+ HPDF_PAGE_SIZE_LEGAL,
440
+ HPDF_PAGE_SIZE_A3,
441
+ HPDF_PAGE_SIZE_A4,
442
+ HPDF_PAGE_SIZE_A5,
443
+ HPDF_PAGE_SIZE_B4,
444
+ HPDF_PAGE_SIZE_B5,
445
+ HPDF_PAGE_SIZE_EXECUTIVE,
446
+ HPDF_PAGE_SIZE_US4x6,
447
+ HPDF_PAGE_SIZE_US4x8,
448
+ HPDF_PAGE_SIZE_US5x7,
449
+ HPDF_PAGE_SIZE_COMM10,
450
+ HPDF_PAGE_SIZE_EOF
451
+ } HPDF_PageSizes;
452
+
453
+
454
+ typedef enum _HPDF_PageDirection {
455
+ HPDF_PAGE_PORTRAIT = 0,
456
+ HPDF_PAGE_LANDSCAPE
457
+ } HPDF_PageDirection;
458
+
459
+
460
+ typedef enum _HPDF_EncoderType {
461
+ HPDF_ENCODER_TYPE_SINGLE_BYTE,
462
+ HPDF_ENCODER_TYPE_DOUBLE_BYTE,
463
+ HPDF_ENCODER_TYPE_UNINITIALIZED,
464
+ HPDF_ENCODER_UNKNOWN
465
+ } HPDF_EncoderType;
466
+
467
+
468
+ typedef enum _HPDF_ByteType {
469
+ HPDF_BYTE_TYPE_SINGLE = 0,
470
+ HPDF_BYTE_TYPE_LEAD,
471
+ HPDF_BYTE_TYPE_TRIAL,
472
+ HPDF_BYTE_TYPE_UNKNOWN
473
+ } HPDF_ByteType;
474
+
475
+
476
+ typedef enum _HPDF_TextAlignment {
477
+ HPDF_TALIGN_LEFT = 0,
478
+ HPDF_TALIGN_RIGHT,
479
+ HPDF_TALIGN_CENTER,
480
+ HPDF_TALIGN_JUSTIFY
481
+ } HPDF_TextAlignment;
482
+
483
+ #ifdef __cplusplus
484
+ }
485
+ #endif /* __cplusplus */
486
+
487
+ #endif /* _HPDF_TYPES_H */
488
+