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,74 @@
1
+ /*
2
+ * << Haru Free PDF Library 2.0.0 >> -- hpdf_annotation.h
3
+ *
4
+ * Copyright (c) 1999-2006 Takeshi Kanno <takeshi_kanno@est.hi-ho.ne.jp>
5
+ *
6
+ * Permission to use, copy, modify, distribute and sell this software
7
+ * and its documentation for any purpose is hereby granted without fee,
8
+ * provided that the above copyright notice appear in all copies and
9
+ * that both that copyright notice and this permission notice appear
10
+ * in supporting documentation.
11
+ * It is provided "as is" without express or implied warranty.
12
+ *
13
+ */
14
+
15
+ #ifndef _HPDF_ANNOTATION_H
16
+ #define _HPDF_ANNOTATION_H
17
+
18
+ #include "hpdf_objects.h"
19
+
20
+ #ifdef __cplusplus
21
+ extern "C" {
22
+ #endif
23
+
24
+ /*----------------------------------------------------------------------------*/
25
+ /*------ HPDF_Annotation -----------------------------------------------------*/
26
+
27
+
28
+ HPDF_Annotation
29
+ HPDF_Annotation_New (HPDF_MMgr mmgr,
30
+ HPDF_Xref xref,
31
+ HPDF_AnnotType type,
32
+ HPDF_Rect rect);
33
+
34
+
35
+ HPDF_Annotation
36
+ HPDF_LinkAnnot_New (HPDF_MMgr mmgr,
37
+ HPDF_Xref xref,
38
+ HPDF_Rect rect,
39
+ HPDF_Destination dst);
40
+
41
+
42
+ HPDF_Annotation
43
+ HPDF_URILinkAnnot_New (HPDF_MMgr mmgr,
44
+ HPDF_Xref xref,
45
+ HPDF_Rect rect,
46
+ const char *uri);
47
+
48
+
49
+ HPDF_Annotation
50
+ HPDF_TextAnnot_New (HPDF_MMgr mmgr,
51
+ HPDF_Xref xref,
52
+ HPDF_Rect rect,
53
+ const char *text,
54
+ HPDF_Encoder encoder);
55
+
56
+
57
+ HPDF_STATUS
58
+ HPDF_Annotation_SetBorderStyle (HPDF_Annotation annot,
59
+ HPDF_BSSubtype subtype,
60
+ HPDF_REAL width,
61
+ HPDF_UINT16 dash_on,
62
+ HPDF_UINT16 dash_off,
63
+ HPDF_UINT16 dash_phase);
64
+
65
+
66
+ HPDF_BOOL
67
+ HPDF_Annotation_Validate (HPDF_Annotation annot);
68
+
69
+ #ifdef __cplusplus
70
+ }
71
+ #endif /* __cplusplus */
72
+
73
+ #endif /* _HPDF_ANNOTATION_H */
74
+
@@ -0,0 +1,81 @@
1
+ /*
2
+ * << Haru Free PDF Library 2.0.0 >> -- hpdf_catalog.h
3
+ *
4
+ * Copyright (c) 1999-2006 Takeshi Kanno <takeshi_kanno@est.hi-ho.ne.jp>
5
+ *
6
+ * Permission to use, copy, modify, distribute and sell this software
7
+ * and its documentation for any purpose is hereby granted without fee,
8
+ * provided that the above copyright notice appear in all copies and
9
+ * that both that copyright notice and this permission notice appear
10
+ * in supporting documentation.
11
+ * It is provided "as is" without express or implied warranty.
12
+ *
13
+ */
14
+
15
+ #ifndef _HPDF_CATALOG_H
16
+ #define _HPDF_CATALOG_H
17
+
18
+ #include "hpdf_objects.h"
19
+
20
+ #ifdef __cplusplus
21
+ extern "C" {
22
+ #endif
23
+
24
+ typedef HPDF_Dict HPDF_Catalog;
25
+
26
+ HPDF_Catalog
27
+ HPDF_Catalog_New (HPDF_MMgr mmgr,
28
+ HPDF_Xref xref);
29
+
30
+
31
+ HPDF_Pages
32
+ HPDF_Catalog_GetRoot (HPDF_Catalog catalog);
33
+
34
+
35
+ HPDF_PageLayout
36
+ HPDF_Catalog_GetPageLayout (HPDF_Catalog catalog);
37
+
38
+
39
+ HPDF_STATUS
40
+ HPDF_Catalog_SetPageLayout (HPDF_Catalog catalog,
41
+ HPDF_PageLayout layout);
42
+
43
+
44
+ HPDF_PageMode
45
+ HPDF_Catalog_GetPageMode (HPDF_Catalog catalog);
46
+
47
+
48
+ HPDF_STATUS
49
+ HPDF_Catalog_SetPageMode (HPDF_Catalog catalog,
50
+ HPDF_PageMode mode);
51
+
52
+
53
+ HPDF_STATUS
54
+ HPDF_Catalog_SetOpenAction (HPDF_Catalog catalog,
55
+ HPDF_Destination open_action);
56
+
57
+
58
+ HPDF_STATUS
59
+ HPDF_Catalog_AddPageLabel (HPDF_Catalog catalog,
60
+ HPDF_UINT page_num,
61
+ HPDF_Dict page_label);
62
+
63
+
64
+ HPDF_UINT
65
+ HPDF_Catalog_GetViewerPreference (HPDF_Catalog catalog);
66
+
67
+
68
+ HPDF_STATUS
69
+ HPDF_Catalog_SetViewerPreference (HPDF_Catalog catalog,
70
+ HPDF_UINT value);
71
+
72
+
73
+ HPDF_BOOL
74
+ HPDF_Catalog_Validate (HPDF_Catalog catalog);
75
+
76
+ #ifdef __cplusplus
77
+ }
78
+ #endif /* __cplusplus */
79
+
80
+ #endif /* _HPDF_CATALOG_H */
81
+
@@ -0,0 +1,76 @@
1
+ /*
2
+ * << Haru Free PDF Library 2.0.7 >> -- hpdf_conf.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_CONF_H
18
+ #define _HPDF_CONF_H
19
+
20
+ #include <stdlib.h>
21
+ #include <stdio.h>
22
+ #include <math.h>
23
+
24
+ /*----------------------------------------------------------------------------*/
25
+ /*----- standard C library functions -----------------------------------------*/
26
+
27
+ #define HPDF_FOPEN fopen
28
+ #define HPDF_FCLOSE fclose
29
+ #define HPDF_FREAD fread
30
+ #define HPDF_FWRITE fwrite
31
+ #define HPDF_FFLUSH fflush
32
+ #define HPDF_FSEEK fseek
33
+ #define HPDF_FTELL ftell
34
+ #define HPDF_FEOF feof
35
+ #define HPDF_FERROR ferror
36
+ #define HPDF_MALLOC malloc
37
+ #define HPDF_FREE free
38
+ #define HPDF_FILEP FILE*
39
+ #define HPDF_TIME time
40
+ #define HPDF_PRINTF printf
41
+ #define HPDF_SIN sin
42
+ #define HPDF_COS cos
43
+
44
+ /*----------------------------------------------------------------------------*/
45
+ /*----- parameters in relation to performance --------------------------------*/
46
+
47
+ /* default buffer size of memory-stream-object */
48
+ #define HPDF_STREAM_BUF_SIZ 4096
49
+
50
+ /* default array size of list-object */
51
+ #define HPDF_DEF_ITEMS_PER_BLOCK 20
52
+
53
+ /* default array size of cross-reference-table */
54
+ #define HPDF_DEFALUT_XREF_ENTRY_NUM 1024
55
+
56
+ /* default array size of widths-table of cid-fontdef */
57
+ #define HPDF_DEF_CHAR_WIDTHS_NUM 128
58
+
59
+ /* default array size of page-list-tablef */
60
+ #define HPDF_DEF_PAGE_LIST_NUM 256
61
+
62
+ /* default array size of range-table of cid-fontdef */
63
+ #define HPDF_DEF_RANGE_TBL_NUM 128
64
+
65
+ /* default buffer size of memory-pool-object */
66
+ #define HPDF_MPOOL_BUF_SIZ 8192
67
+ #define HPDF_MIN_MPOOL_BUF_SIZ 256
68
+ #define HPDF_MAX_MPOOL_BUF_SIZ 1048576
69
+
70
+ /* alignment size of memory-pool-object
71
+ */
72
+ #define HPDF_ALIGN_SIZ sizeof int;
73
+
74
+
75
+ #endif /* _HPDF_CONF_H */
76
+
@@ -0,0 +1,549 @@
1
+ /*
2
+ * << Haru Free PDF Library 2.0.8 >> -- hpdf_consts.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
+
18
+ #ifndef _HPDF_CONSTS_H
19
+ #define _HPDF_CONSTS_H
20
+
21
+ /*----------------------------------------------------------------------------*/
22
+
23
+ #define HPDF_TRUE 1
24
+ #define HPDF_FALSE 0
25
+
26
+ #define HPDF_OK 0
27
+ #define HPDF_NOERROR 0
28
+
29
+ /*----- default values -------------------------------------------------------*/
30
+
31
+ /* buffer size which is required when we convert to character string. */
32
+ #define HPDF_TMP_BUF_SIZ 512
33
+ #define HPDF_SHORT_BUF_SIZ 32
34
+ #define HPDF_REAL_LEN 11
35
+ #define HPDF_INT_LEN 11
36
+ #define HPDF_TEXT_DEFAULT_LEN 256
37
+ #define HPDF_UNICODE_HEADER_LEN 2
38
+ #define HPDF_DATE_TIME_STR_LEN 23
39
+
40
+ /* length of each item defined in PDF */
41
+ #define HPDF_BYTE_OFFSET_LEN 10
42
+ #define HPDF_OBJ_ID_LEN 7
43
+ #define HPDF_GEN_NO_LEN 5
44
+
45
+ /* default value of Graphic State */
46
+ #define HPDF_DEF_FONT "Helvetica"
47
+ #define HPDF_DEF_PAGE_LAYOUT HPDF_PAGE_LAYOUT_SINGLE
48
+ #define HPDF_DEF_PAGE_MODE HPDF_PAGE_MODE_USE_NONE
49
+ #define HPDF_DEF_WORDSPACE 0
50
+ #define HPDF_DEF_CHARSPACE 0
51
+ #define HPDF_DEF_FONTSIZE 10
52
+ #define HPDF_DEF_HSCALING 100
53
+ #define HPDF_DEF_LEADING 0
54
+ #define HPDF_DEF_RENDERING_MODE HPDF_FILL
55
+ #define HPDF_DEF_RISE 0
56
+ #define HPDF_DEF_RAISE HPDF_DEF_RISE
57
+ #define HPDF_DEF_LINEWIDTH 1
58
+ #define HPDF_DEF_LINECAP HPDF_BUTT_END
59
+ #define HPDF_DEF_LINEJOIN HPDF_MITER_JOIN
60
+ #define HPDF_DEF_MITERLIMIT 10
61
+ #define HPDF_DEF_FLATNESS 1
62
+ #define HPDF_DEF_PAGE_NUM 1
63
+
64
+ #define HPDF_BS_DEF_WIDTH 1
65
+
66
+ /* defalt page-size */
67
+ #define HPDF_DEF_PAGE_WIDTH 595.276F
68
+ #define HPDF_DEF_PAGE_HEIGHT 841.89F
69
+
70
+ #define HPDF_VERSION_TEXT "2.0.8"
71
+
72
+ /*---------------------------------------------------------------------------*/
73
+ /*----- compression mode ----------------------------------------------------*/
74
+
75
+ #define HPDF_COMP_NONE 0x00
76
+ #define HPDF_COMP_TEXT 0x01
77
+ #define HPDF_COMP_IMAGE 0x02
78
+ #define HPDF_COMP_METADATA 0x04
79
+ #define HPDF_COMP_ALL 0x0F
80
+ /* #define HPDF_COMP_BEST_COMPRESS 0x10
81
+ * #define HPDF_COMP_BEST_SPEED 0x20
82
+ */
83
+ #define HPDF_COMP_MASK 0xFF
84
+
85
+
86
+ /*----------------------------------------------------------------------------*/
87
+ /*----- permission flags (only Revision 2 is supported)-----------------------*/
88
+
89
+ #define HPDF_ENABLE_READ 0
90
+ #define HPDF_ENABLE_PRINT 4
91
+ #define HPDF_ENABLE_EDIT_ALL 8
92
+ #define HPDF_ENABLE_COPY 16
93
+ #define HPDF_ENABLE_EDIT 32
94
+
95
+
96
+ /*----------------------------------------------------------------------------*/
97
+ /*------ viewer preferences definitions --------------------------------------*/
98
+
99
+ #define HPDF_HIDE_TOOLBAR 1
100
+ #define HPDF_HIDE_MENUBAR 2
101
+ #define HPDF_HIDE_WINDOW_UI 4
102
+ #define HPDF_FIT_WINDOW 8
103
+ #define HPDF_CENTER_WINDOW 16
104
+
105
+
106
+ /*---------------------------------------------------------------------------*/
107
+ /*------ limitation of object implementation (PDF1.4) -----------------------*/
108
+
109
+ #define HPDF_LIMIT_MAX_INT 2147483647
110
+ #define HPDF_LIMIT_MIN_INT -2147483647
111
+
112
+ #define HPDF_LIMIT_MAX_REAL 32767
113
+ #define HPDF_LIMIT_MIN_REAL -32767
114
+
115
+ #define HPDF_LIMIT_MAX_STRING_LEN 65535
116
+ #define HPDF_LIMIT_MAX_NAME_LEN 127
117
+
118
+ #define HPDF_LIMIT_MAX_ARRAY 8191
119
+ #define HPDF_LIMIT_MAX_DICT_ELEMENT 4095
120
+ #define HPDF_LIMIT_MAX_XREF_ELEMENT 8388607
121
+ #define HPDF_LIMIT_MAX_GSTATE 28
122
+ #define HPDF_LIMIT_MAX_DEVICE_N 8
123
+ #define HPDF_LIMIT_MAX_DEVICE_N_V15 32
124
+ #define HPDF_LIMIT_MAX_CID 65535
125
+ #define HPDF_MAX_GENERATION_NUM 65535
126
+
127
+ #define HPDF_MIN_PAGE_HEIGHT 3
128
+ #define HPDF_MIN_PAGE_WIDTH 3
129
+ #define HPDF_MAX_PAGE_HEIGHT 14400
130
+ #define HPDF_MAX_PAGE_WIDTH 14400
131
+ #define HPDF_MIN_MAGNIFICATION_FACTOR 8
132
+ #define HPDF_MAX_MAGNIFICATION_FACTOR 3200
133
+
134
+ /*---------------------------------------------------------------------------*/
135
+ /*------ limitation of various properties -----------------------------------*/
136
+
137
+ #define HPDF_MIN_PAGE_SIZE 3
138
+ #define HPDF_MAX_PAGE_SIZE 14400
139
+ #define HPDF_MIN_HORIZONTALSCALING 10
140
+ #define HPDF_MAX_HORIZONTALSCALING 300
141
+ #define HPDF_MIN_WORDSPACE -30
142
+ #define HPDF_MAX_WORDSPACE 300
143
+ #define HPDF_MIN_CHARSPACE -30
144
+ #define HPDF_MAX_CHARSPACE 300
145
+ #define HPDF_MAX_FONTSIZE 300
146
+ #define HPDF_MAX_ZOOMSIZE 10
147
+ #define HPDF_MAX_LEADING 300
148
+ #define HPDF_MAX_LINEWIDTH 100
149
+ #define HPDF_MAX_DASH_PATTERN 100
150
+
151
+ #define HPDF_MAX_JWW_NUM 128
152
+
153
+ /*----------------------------------------------------------------------------*/
154
+ /*----- country code definition ----------------------------------------------*/
155
+
156
+ #define HPDF_COUNTRY_AF "AF" /* AFGHANISTAN */
157
+ #define HPDF_COUNTRY_AL "AL" /* ALBANIA */
158
+ #define HPDF_COUNTRY_DZ "DZ" /* ALGERIA */
159
+ #define HPDF_COUNTRY_AS "AS" /* AMERICAN SAMOA */
160
+ #define HPDF_COUNTRY_AD "AD" /* ANDORRA */
161
+ #define HPDF_COUNTRY_AO "AO" /* ANGOLA */
162
+ #define HPDF_COUNTRY_AI "AI" /* ANGUILLA */
163
+ #define HPDF_COUNTRY_AQ "AQ" /* ANTARCTICA */
164
+ #define HPDF_COUNTRY_AG "AG" /* ANTIGUA AND BARBUDA */
165
+ #define HPDF_COUNTRY_AR "AR" /* ARGENTINA */
166
+ #define HPDF_COUNTRY_AM "AM" /* ARMENIA */
167
+ #define HPDF_COUNTRY_AW "AW" /* ARUBA */
168
+ #define HPDF_COUNTRY_AU "AU" /* AUSTRALIA */
169
+ #define HPDF_COUNTRY_AT "AT" /* AUSTRIA */
170
+ #define HPDF_COUNTRY_AZ "AZ" /* AZERBAIJAN */
171
+ #define HPDF_COUNTRY_BS "BS" /* BAHAMAS */
172
+ #define HPDF_COUNTRY_BH "BH" /* BAHRAIN */
173
+ #define HPDF_COUNTRY_BD "BD" /* BANGLADESH */
174
+ #define HPDF_COUNTRY_BB "BB" /* BARBADOS */
175
+ #define HPDF_COUNTRY_BY "BY" /* BELARUS */
176
+ #define HPDF_COUNTRY_BE "BE" /* BELGIUM */
177
+ #define HPDF_COUNTRY_BZ "BZ" /* BELIZE */
178
+ #define HPDF_COUNTRY_BJ "BJ" /* BENIN */
179
+ #define HPDF_COUNTRY_BM "BM" /* BERMUDA */
180
+ #define HPDF_COUNTRY_BT "BT" /* BHUTAN */
181
+ #define HPDF_COUNTRY_BO "BO" /* BOLIVIA */
182
+ #define HPDF_COUNTRY_BA "BA" /* BOSNIA AND HERZEGOWINA */
183
+ #define HPDF_COUNTRY_BW "BW" /* BOTSWANA */
184
+ #define HPDF_COUNTRY_BV "BV" /* BOUVET ISLAND */
185
+ #define HPDF_COUNTRY_BR "BR" /* BRAZIL */
186
+ #define HPDF_COUNTRY_IO "IO" /* BRITISH INDIAN OCEAN TERRITORY */
187
+ #define HPDF_COUNTRY_BN "BN" /* BRUNEI DARUSSALAM */
188
+ #define HPDF_COUNTRY_BG "BG" /* BULGARIA */
189
+ #define HPDF_COUNTRY_BF "BF" /* BURKINA FASO */
190
+ #define HPDF_COUNTRY_BI "BI" /* BURUNDI */
191
+ #define HPDF_COUNTRY_KH "KH" /* CAMBODIA */
192
+ #define HPDF_COUNTRY_CM "CM" /* CAMEROON */
193
+ #define HPDF_COUNTRY_CA "CA" /* CANADA */
194
+ #define HPDF_COUNTRY_CV "CV" /* CAPE VERDE */
195
+ #define HPDF_COUNTRY_KY "KY" /* CAYMAN ISLANDS */
196
+ #define HPDF_COUNTRY_CF "CF" /* CENTRAL AFRICAN REPUBLIC */
197
+ #define HPDF_COUNTRY_TD "TD" /* CHAD */
198
+ #define HPDF_COUNTRY_CL "CL" /* CHILE */
199
+ #define HPDF_COUNTRY_CN "CN" /* CHINA */
200
+ #define HPDF_COUNTRY_CX "CX" /* CHRISTMAS ISLAND */
201
+ #define HPDF_COUNTRY_CC "CC" /* COCOS (KEELING) ISLANDS */
202
+ #define HPDF_COUNTRY_CO "CO" /* COLOMBIA */
203
+ #define HPDF_COUNTRY_KM "KM" /* COMOROS */
204
+ #define HPDF_COUNTRY_CG "CG" /* CONGO */
205
+ #define HPDF_COUNTRY_CK "CK" /* COOK ISLANDS */
206
+ #define HPDF_COUNTRY_CR "CR" /* COSTA RICA */
207
+ #define HPDF_COUNTRY_CI "CI" /* COTE D'IVOIRE */
208
+ #define HPDF_COUNTRY_HR "HR" /* CROATIA (local name: Hrvatska) */
209
+ #define HPDF_COUNTRY_CU "CU" /* CUBA */
210
+ #define HPDF_COUNTRY_CY "CY" /* CYPRUS */
211
+ #define HPDF_COUNTRY_CZ "CZ" /* CZECH REPUBLIC */
212
+ #define HPDF_COUNTRY_DK "DK" /* DENMARK */
213
+ #define HPDF_COUNTRY_DJ "DJ" /* DJIBOUTI */
214
+ #define HPDF_COUNTRY_DM "DM" /* DOMINICA */
215
+ #define HPDF_COUNTRY_DO "DO" /* DOMINICAN REPUBLIC */
216
+ #define HPDF_COUNTRY_TP "TP" /* EAST TIMOR */
217
+ #define HPDF_COUNTRY_EC "EC" /* ECUADOR */
218
+ #define HPDF_COUNTRY_EG "EG" /* EGYPT */
219
+ #define HPDF_COUNTRY_SV "SV" /* EL SALVADOR */
220
+ #define HPDF_COUNTRY_GQ "GQ" /* EQUATORIAL GUINEA */
221
+ #define HPDF_COUNTRY_ER "ER" /* ERITREA */
222
+ #define HPDF_COUNTRY_EE "EE" /* ESTONIA */
223
+ #define HPDF_COUNTRY_ET "ET" /* ETHIOPIA */
224
+ #define HPDF_COUNTRY_FK "FK" /* FALKLAND ISLANDS (MALVINAS) */
225
+ #define HPDF_COUNTRY_FO "FO" /* FAROE ISLANDS */
226
+ #define HPDF_COUNTRY_FJ "FJ" /* FIJI */
227
+ #define HPDF_COUNTRY_FI "FI" /* FINLAND */
228
+ #define HPDF_COUNTRY_FR "FR" /* FRANCE */
229
+ #define HPDF_COUNTRY_FX "FX" /* FRANCE, METROPOLITAN */
230
+ #define HPDF_COUNTRY_GF "GF" /* FRENCH GUIANA */
231
+ #define HPDF_COUNTRY_PF "PF" /* FRENCH POLYNESIA */
232
+ #define HPDF_COUNTRY_TF "TF" /* FRENCH SOUTHERN TERRITORIES */
233
+ #define HPDF_COUNTRY_GA "GA" /* GABON */
234
+ #define HPDF_COUNTRY_GM "GM" /* GAMBIA */
235
+ #define HPDF_COUNTRY_GE "GE" /* GEORGIA */
236
+ #define HPDF_COUNTRY_DE "DE" /* GERMANY */
237
+ #define HPDF_COUNTRY_GH "GH" /* GHANA */
238
+ #define HPDF_COUNTRY_GI "GI" /* GIBRALTAR */
239
+ #define HPDF_COUNTRY_GR "GR" /* GREECE */
240
+ #define HPDF_COUNTRY_GL "GL" /* GREENLAND */
241
+ #define HPDF_COUNTRY_GD "GD" /* GRENADA */
242
+ #define HPDF_COUNTRY_GP "GP" /* GUADELOUPE */
243
+ #define HPDF_COUNTRY_GU "GU" /* GUAM */
244
+ #define HPDF_COUNTRY_GT "GT" /* GUATEMALA */
245
+ #define HPDF_COUNTRY_GN "GN" /* GUINEA */
246
+ #define HPDF_COUNTRY_GW "GW" /* GUINEA-BISSAU */
247
+ #define HPDF_COUNTRY_GY "GY" /* GUYANA */
248
+ #define HPDF_COUNTRY_HT "HT" /* HAITI */
249
+ #define HPDF_COUNTRY_HM "HM" /* HEARD AND MC DONALD ISLANDS */
250
+ #define HPDF_COUNTRY_HN "HN" /* HONDURAS */
251
+ #define HPDF_COUNTRY_HK "HK" /* HONG KONG */
252
+ #define HPDF_COUNTRY_HU "HU" /* HUNGARY */
253
+ #define HPDF_COUNTRY_IS "IS" /* ICELAND */
254
+ #define HPDF_COUNTRY_IN "IN" /* INDIA */
255
+ #define HPDF_COUNTRY_ID "ID" /* INDONESIA */
256
+ #define HPDF_COUNTRY_IR "IR" /* IRAN (ISLAMIC REPUBLIC OF) */
257
+ #define HPDF_COUNTRY_IQ "IQ" /* IRAQ */
258
+ #define HPDF_COUNTRY_IE "IE" /* IRELAND */
259
+ #define HPDF_COUNTRY_IL "IL" /* ISRAEL */
260
+ #define HPDF_COUNTRY_IT "IT" /* ITALY */
261
+ #define HPDF_COUNTRY_JM "JM" /* JAMAICA */
262
+ #define HPDF_COUNTRY_JP "JP" /* JAPAN */
263
+ #define HPDF_COUNTRY_JO "JO" /* JORDAN */
264
+ #define HPDF_COUNTRY_KZ "KZ" /* KAZAKHSTAN */
265
+ #define HPDF_COUNTRY_KE "KE" /* KENYA */
266
+ #define HPDF_COUNTRY_KI "KI" /* KIRIBATI */
267
+ #define HPDF_COUNTRY_KP "KP" /* KOREA, DEMOCRATIC PEOPLE'S REPUBLIC OF */
268
+ #define HPDF_COUNTRY_KR "KR" /* KOREA, REPUBLIC OF */
269
+ #define HPDF_COUNTRY_KW "KW" /* KUWAIT */
270
+ #define HPDF_COUNTRY_KG "KG" /* KYRGYZSTAN */
271
+ #define HPDF_COUNTRY_LA "LA" /* LAO PEOPLE'S DEMOCRATIC REPUBLIC */
272
+ #define HPDF_COUNTRY_LV "LV" /* LATVIA */
273
+ #define HPDF_COUNTRY_LB "LB" /* LEBANON */
274
+ #define HPDF_COUNTRY_LS "LS" /* LESOTHO */
275
+ #define HPDF_COUNTRY_LR "LR" /* LIBERIA */
276
+ #define HPDF_COUNTRY_LY "LY" /* LIBYAN ARAB JAMAHIRIYA */
277
+ #define HPDF_COUNTRY_LI "LI" /* LIECHTENSTEIN */
278
+ #define HPDF_COUNTRY_LT "LT" /* LITHUANIA */
279
+ #define HPDF_COUNTRY_LU "LU" /* LUXEMBOURG */
280
+ #define HPDF_COUNTRY_MO "MO" /* MACAU */
281
+ #define HPDF_COUNTRY_MK "MK" /* MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF */
282
+ #define HPDF_COUNTRY_MG "MG" /* MADAGASCAR */
283
+ #define HPDF_COUNTRY_MW "MW" /* MALAWI */
284
+ #define HPDF_COUNTRY_MY "MY" /* MALAYSIA */
285
+ #define HPDF_COUNTRY_MV "MV" /* MALDIVES */
286
+ #define HPDF_COUNTRY_ML "ML" /* MALI */
287
+ #define HPDF_COUNTRY_MT "MT" /* MALTA */
288
+ #define HPDF_COUNTRY_MH "MH" /* MARSHALL ISLANDS */
289
+ #define HPDF_COUNTRY_MQ "MQ" /* MARTINIQUE */
290
+ #define HPDF_COUNTRY_MR "MR" /* MAURITANIA */
291
+ #define HPDF_COUNTRY_MU "MU" /* MAURITIUS */
292
+ #define HPDF_COUNTRY_YT "YT" /* MAYOTTE */
293
+ #define HPDF_COUNTRY_MX "MX" /* MEXICO */
294
+ #define HPDF_COUNTRY_FM "FM" /* MICRONESIA, FEDERATED STATES OF */
295
+ #define HPDF_COUNTRY_MD "MD" /* MOLDOVA, REPUBLIC OF */
296
+ #define HPDF_COUNTRY_MC "MC" /* MONACO */
297
+ #define HPDF_COUNTRY_MN "MN" /* MONGOLIA */
298
+ #define HPDF_COUNTRY_MS "MS" /* MONTSERRAT */
299
+ #define HPDF_COUNTRY_MA "MA" /* MOROCCO */
300
+ #define HPDF_COUNTRY_MZ "MZ" /* MOZAMBIQUE */
301
+ #define HPDF_COUNTRY_MM "MM" /* MYANMAR */
302
+ #define HPDF_COUNTRY_NA "NA" /* NAMIBIA */
303
+ #define HPDF_COUNTRY_NR "NR" /* NAURU */
304
+ #define HPDF_COUNTRY_NP "NP" /* NEPAL */
305
+ #define HPDF_COUNTRY_NL "NL" /* NETHERLANDS */
306
+ #define HPDF_COUNTRY_AN "AN" /* NETHERLANDS ANTILLES */
307
+ #define HPDF_COUNTRY_NC "NC" /* NEW CALEDONIA */
308
+ #define HPDF_COUNTRY_NZ "NZ" /* NEW ZEALAND */
309
+ #define HPDF_COUNTRY_NI "NI" /* NICARAGUA */
310
+ #define HPDF_COUNTRY_NE "NE" /* NIGER */
311
+ #define HPDF_COUNTRY_NG "NG" /* NIGERIA */
312
+ #define HPDF_COUNTRY_NU "NU" /* NIUE */
313
+ #define HPDF_COUNTRY_NF "NF" /* NORFOLK ISLAND */
314
+ #define HPDF_COUNTRY_MP "MP" /* NORTHERN MARIANA ISLANDS */
315
+ #define HPDF_COUNTRY_NO "NO" /* NORWAY */
316
+ #define HPDF_COUNTRY_OM "OM" /* OMAN */
317
+ #define HPDF_COUNTRY_PK "PK" /* PAKISTAN */
318
+ #define HPDF_COUNTRY_PW "PW" /* PALAU */
319
+ #define HPDF_COUNTRY_PA "PA" /* PANAMA */
320
+ #define HPDF_COUNTRY_PG "PG" /* PAPUA NEW GUINEA */
321
+ #define HPDF_COUNTRY_PY "PY" /* PARAGUAY */
322
+ #define HPDF_COUNTRY_PE "PE" /* PERU */
323
+ #define HPDF_COUNTRY_PH "PH" /* PHILIPPINES */
324
+ #define HPDF_COUNTRY_PN "PN" /* PITCAIRN */
325
+ #define HPDF_COUNTRY_PL "PL" /* POLAND */
326
+ #define HPDF_COUNTRY_PT "PT" /* PORTUGAL */
327
+ #define HPDF_COUNTRY_PR "PR" /* PUERTO RICO */
328
+ #define HPDF_COUNTRY_QA "QA" /* QATAR */
329
+ #define HPDF_COUNTRY_RE "RE" /* REUNION */
330
+ #define HPDF_COUNTRY_RO "RO" /* ROMANIA */
331
+ #define HPDF_COUNTRY_RU "RU" /* RUSSIAN FEDERATION */
332
+ #define HPDF_COUNTRY_RW "RW" /* RWANDA */
333
+ #define HPDF_COUNTRY_KN "KN" /* SAINT KITTS AND NEVIS */
334
+ #define HPDF_COUNTRY_LC "LC" /* SAINT LUCIA */
335
+ #define HPDF_COUNTRY_VC "VC" /* SAINT VINCENT AND THE GRENADINES */
336
+ #define HPDF_COUNTRY_WS "WS" /* SAMOA */
337
+ #define HPDF_COUNTRY_SM "SM" /* SAN MARINO */
338
+ #define HPDF_COUNTRY_ST "ST" /* SAO TOME AND PRINCIPE */
339
+ #define HPDF_COUNTRY_SA "SA" /* SAUDI ARABIA */
340
+ #define HPDF_COUNTRY_SN "SN" /* SENEGAL */
341
+ #define HPDF_COUNTRY_SC "SC" /* SEYCHELLES */
342
+ #define HPDF_COUNTRY_SL "SL" /* SIERRA LEONE */
343
+ #define HPDF_COUNTRY_SG "SG" /* SINGAPORE */
344
+ #define HPDF_COUNTRY_SK "SK" /* SLOVAKIA (Slovak Republic) */
345
+ #define HPDF_COUNTRY_SI "SI" /* SLOVENIA */
346
+ #define HPDF_COUNTRY_SB "SB" /* SOLOMON ISLANDS */
347
+ #define HPDF_COUNTRY_SO "SO" /* SOMALIA */
348
+ #define HPDF_COUNTRY_ZA "ZA" /* SOUTH AFRICA */
349
+ #define HPDF_COUNTRY_ES "ES" /* SPAIN */
350
+ #define HPDF_COUNTRY_LK "LK" /* SRI LANKA */
351
+ #define HPDF_COUNTRY_SH "SH" /* ST. HELENA */
352
+ #define HPDF_COUNTRY_PM "PM" /* ST. PIERRE AND MIQUELON */
353
+ #define HPDF_COUNTRY_SD "SD" /* SUDAN */
354
+ #define HPDF_COUNTRY_SR "SR" /* SURINAME */
355
+ #define HPDF_COUNTRY_SJ "SJ" /* SVALBARD AND JAN MAYEN ISLANDS */
356
+ #define HPDF_COUNTRY_SZ "SZ" /* SWAZILAND */
357
+ #define HPDF_COUNTRY_SE "SE" /* SWEDEN */
358
+ #define HPDF_COUNTRY_CH "CH" /* SWITZERLAND */
359
+ #define HPDF_COUNTRY_SY "SY" /* SYRIAN ARAB REPUBLIC */
360
+ #define HPDF_COUNTRY_TW "TW" /* TAIWAN, PROVINCE OF CHINA */
361
+ #define HPDF_COUNTRY_TJ "TJ" /* TAJIKISTAN */
362
+ #define HPDF_COUNTRY_TZ "TZ" /* TANZANIA, UNITED REPUBLIC OF */
363
+ #define HPDF_COUNTRY_TH "TH" /* THAILAND */
364
+ #define HPDF_COUNTRY_TG "TG" /* TOGO */
365
+ #define HPDF_COUNTRY_TK "TK" /* TOKELAU */
366
+ #define HPDF_COUNTRY_TO "TO" /* TONGA */
367
+ #define HPDF_COUNTRY_TT "TT" /* TRINIDAD AND TOBAGO */
368
+ #define HPDF_COUNTRY_TN "TN" /* TUNISIA */
369
+ #define HPDF_COUNTRY_TR "TR" /* TURKEY */
370
+ #define HPDF_COUNTRY_TM "TM" /* TURKMENISTAN */
371
+ #define HPDF_COUNTRY_TC "TC" /* TURKS AND CAICOS ISLANDS */
372
+ #define HPDF_COUNTRY_TV "TV" /* TUVALU */
373
+ #define HPDF_COUNTRY_UG "UG" /* UGANDA */
374
+ #define HPDF_COUNTRY_UA "UA" /* UKRAINE */
375
+ #define HPDF_COUNTRY_AE "AE" /* UNITED ARAB EMIRATES */
376
+ #define HPDF_COUNTRY_GB "GB" /* UNITED KINGDOM */
377
+ #define HPDF_COUNTRY_US "US" /* UNITED STATES */
378
+ #define HPDF_COUNTRY_UM "UM" /* UNITED STATES MINOR OUTLYING ISLANDS */
379
+ #define HPDF_COUNTRY_UY "UY" /* URUGUAY */
380
+ #define HPDF_COUNTRY_UZ "UZ" /* UZBEKISTAN */
381
+ #define HPDF_COUNTRY_VU "VU" /* VANUATU */
382
+ #define HPDF_COUNTRY_VA "VA" /* VATICAN CITY STATE (HOLY SEE) */
383
+ #define HPDF_COUNTRY_VE "VE" /* VENEZUELA */
384
+ #define HPDF_COUNTRY_VN "VN" /* VIET NAM */
385
+ #define HPDF_COUNTRY_VG "VG" /* VIRGIN ISLANDS (BRITISH) */
386
+ #define HPDF_COUNTRY_VI "VI" /* VIRGIN ISLANDS (U.S.) */
387
+ #define HPDF_COUNTRY_WF "WF" /* WALLIS AND FUTUNA ISLANDS */
388
+ #define HPDF_COUNTRY_EH "EH" /* WESTERN SAHARA */
389
+ #define HPDF_COUNTRY_YE "YE" /* YEMEN */
390
+ #define HPDF_COUNTRY_YU "YU" /* YUGOSLAVIA */
391
+ #define HPDF_COUNTRY_ZR "ZR" /* ZAIRE */
392
+ #define HPDF_COUNTRY_ZM "ZM" /* ZAMBIA */
393
+ #define HPDF_COUNTRY_ZW "ZW" /* ZIMBABWE */
394
+
395
+ /*----------------------------------------------------------------------------*/
396
+ /*----- lang code definition -------------------------------------------------*/
397
+
398
+ #define HPDF_LANG_AA "aa" /* Afar */
399
+ #define HPDF_LANG_AB "ab" /* Abkhazian */
400
+ #define HPDF_LANG_AF "af" /* Afrikaans */
401
+ #define HPDF_LANG_AM "am" /* Amharic */
402
+ #define HPDF_LANG_AR "ar" /* Arabic */
403
+ #define HPDF_LANG_AS "as" /* Assamese */
404
+ #define HPDF_LANG_AY "ay" /* Aymara */
405
+ #define HPDF_LANG_AZ "az" /* Azerbaijani */
406
+ #define HPDF_LANG_BA "ba" /* Bashkir */
407
+ #define HPDF_LANG_BE "be" /* Byelorussian */
408
+ #define HPDF_LANG_BG "bg" /* Bulgarian */
409
+ #define HPDF_LANG_BH "bh" /* Bihari */
410
+ #define HPDF_LANG_BI "bi" /* Bislama */
411
+ #define HPDF_LANG_BN "bn" /* Bengali Bangla */
412
+ #define HPDF_LANG_BO "bo" /* Tibetan */
413
+ #define HPDF_LANG_BR "br" /* Breton */
414
+ #define HPDF_LANG_CA "ca" /* Catalan */
415
+ #define HPDF_LANG_CO "co" /* Corsican */
416
+ #define HPDF_LANG_CS "cs" /* Czech */
417
+ #define HPDF_LANG_CY "cy" /* Welsh */
418
+ #define HPDF_LANG_DA "da" /* Danish */
419
+ #define HPDF_LANG_DE "de" /* German */
420
+ #define HPDF_LANG_DZ "dz" /* Bhutani */
421
+ #define HPDF_LANG_EL "el" /* Greek */
422
+ #define HPDF_LANG_EN "en" /* English */
423
+ #define HPDF_LANG_EO "eo" /* Esperanto */
424
+ #define HPDF_LANG_ES "es" /* Spanish */
425
+ #define HPDF_LANG_ET "et" /* Estonian */
426
+ #define HPDF_LANG_EU "eu" /* Basque */
427
+ #define HPDF_LANG_FA "fa" /* Persian */
428
+ #define HPDF_LANG_FI "fi" /* Finnish */
429
+ #define HPDF_LANG_FJ "fj" /* Fiji */
430
+ #define HPDF_LANG_FO "fo" /* Faeroese */
431
+ #define HPDF_LANG_FR "fr" /* French */
432
+ #define HPDF_LANG_FY "fy" /* Frisian */
433
+ #define HPDF_LANG_GA "ga" /* Irish */
434
+ #define HPDF_LANG_GD "gd" /* Scots Gaelic */
435
+ #define HPDF_LANG_GL "gl" /* Galician */
436
+ #define HPDF_LANG_GN "gn" /* Guarani */
437
+ #define HPDF_LANG_GU "gu" /* Gujarati */
438
+ #define HPDF_LANG_HA "ha" /* Hausa */
439
+ #define HPDF_LANG_HI "hi" /* Hindi */
440
+ #define HPDF_LANG_HR "hr" /* Croatian */
441
+ #define HPDF_LANG_HU "hu" /* Hungarian */
442
+ #define HPDF_LANG_HY "hy" /* Armenian */
443
+ #define HPDF_LANG_IA "ia" /* Interlingua */
444
+ #define HPDF_LANG_IE "ie" /* Interlingue */
445
+ #define HPDF_LANG_IK "ik" /* Inupiak */
446
+ #define HPDF_LANG_IN "in" /* Indonesian */
447
+ #define HPDF_LANG_IS "is" /* Icelandic */
448
+ #define HPDF_LANG_IT "it" /* Italian */
449
+ #define HPDF_LANG_IW "iw" /* Hebrew */
450
+ #define HPDF_LANG_JA "ja" /* Japanese */
451
+ #define HPDF_LANG_JI "ji" /* Yiddish */
452
+ #define HPDF_LANG_JW "jw" /* Javanese */
453
+ #define HPDF_LANG_KA "ka" /* Georgian */
454
+ #define HPDF_LANG_KK "kk" /* Kazakh */
455
+ #define HPDF_LANG_KL "kl" /* Greenlandic */
456
+ #define HPDF_LANG_KM "km" /* Cambodian */
457
+ #define HPDF_LANG_KN "kn" /* Kannada */
458
+ #define HPDF_LANG_KO "ko" /* Korean */
459
+ #define HPDF_LANG_KS "ks" /* Kashmiri */
460
+ #define HPDF_LANG_KU "ku" /* Kurdish */
461
+ #define HPDF_LANG_KY "ky" /* Kirghiz */
462
+ #define HPDF_LANG_LA "la" /* Latin */
463
+ #define HPDF_LANG_LN "ln" /* Lingala */
464
+ #define HPDF_LANG_LO "lo" /* Laothian */
465
+ #define HPDF_LANG_LT "lt" /* Lithuanian */
466
+ #define HPDF_LANG_LV "lv" /* Latvian,Lettish */
467
+ #define HPDF_LANG_MG "mg" /* Malagasy */
468
+ #define HPDF_LANG_MI "mi" /* Maori */
469
+ #define HPDF_LANG_MK "mk" /* Macedonian */
470
+ #define HPDF_LANG_ML "ml" /* Malayalam */
471
+ #define HPDF_LANG_MN "mn" /* Mongolian */
472
+ #define HPDF_LANG_MO "mo" /* Moldavian */
473
+ #define HPDF_LANG_MR "mr" /* Marathi */
474
+ #define HPDF_LANG_MS "ms" /* Malay */
475
+ #define HPDF_LANG_MT "mt" /* Maltese */
476
+ #define HPDF_LANG_MY "my" /* Burmese */
477
+ #define HPDF_LANG_NA "na" /* Nauru */
478
+ #define HPDF_LANG_NE "ne" /* Nepali */
479
+ #define HPDF_LANG_NL "nl" /* Dutch */
480
+ #define HPDF_LANG_NO "no" /* Norwegian */
481
+ #define HPDF_LANG_OC "oc" /* Occitan */
482
+ #define HPDF_LANG_OM "om" /* (Afan)Oromo */
483
+ #define HPDF_LANG_OR "or" /* Oriya */
484
+ #define HPDF_LANG_PA "pa" /* Punjabi */
485
+ #define HPDF_LANG_PL "pl" /* Polish */
486
+ #define HPDF_LANG_PS "ps" /* Pashto,Pushto */
487
+ #define HPDF_LANG_PT "pt" /* Portuguese */
488
+ #define HPDF_LANG_QU "qu" /* Quechua */
489
+ #define HPDF_LANG_RM "rm" /* Rhaeto-Romance */
490
+ #define HPDF_LANG_RN "rn" /* Kirundi */
491
+ #define HPDF_LANG_RO "ro" /* Romanian */
492
+ #define HPDF_LANG_RU "ru" /* Russian */
493
+ #define HPDF_LANG_RW "rw" /* Kinyarwanda */
494
+ #define HPDF_LANG_SA "sa" /* Sanskrit */
495
+ #define HPDF_LANG_SD "sd" /* Sindhi */
496
+ #define HPDF_LANG_SG "sg" /* Sangro */
497
+ #define HPDF_LANG_SH "sh" /* Serbo-Croatian */
498
+ #define HPDF_LANG_SI "si" /* Singhalese */
499
+ #define HPDF_LANG_SK "sk" /* Slovak */
500
+ #define HPDF_LANG_SL "sl" /* Slovenian */
501
+ #define HPDF_LANG_SM "sm" /* Samoan */
502
+ #define HPDF_LANG_SN "sn" /* Shona */
503
+ #define HPDF_LANG_SO "so" /* Somali */
504
+ #define HPDF_LANG_SQ "sq" /* Albanian */
505
+ #define HPDF_LANG_SR "sr" /* Serbian */
506
+ #define HPDF_LANG_SS "ss" /* Siswati */
507
+ #define HPDF_LANG_ST "st" /* Sesotho */
508
+ #define HPDF_LANG_SU "su" /* Sundanese */
509
+ #define HPDF_LANG_SV "sv" /* Swedish */
510
+ #define HPDF_LANG_SW "sw" /* Swahili */
511
+ #define HPDF_LANG_TA "ta" /* Tamil */
512
+ #define HPDF_LANG_TE "te" /* Tegulu */
513
+ #define HPDF_LANG_TG "tg" /* Tajik */
514
+ #define HPDF_LANG_TH "th" /* Thai */
515
+ #define HPDF_LANG_TI "ti" /* Tigrinya */
516
+ #define HPDF_LANG_TK "tk" /* Turkmen */
517
+ #define HPDF_LANG_TL "tl" /* Tagalog */
518
+ #define HPDF_LANG_TN "tn" /* Setswanato Tonga */
519
+ #define HPDF_LANG_TR "tr" /* Turkish */
520
+ #define HPDF_LANG_TS "ts" /* Tsonga */
521
+ #define HPDF_LANG_TT "tt" /* Tatar */
522
+ #define HPDF_LANG_TW "tw" /* Twi */
523
+ #define HPDF_LANG_UK "uk" /* Ukrainian */
524
+ #define HPDF_LANG_UR "ur" /* Urdu */
525
+ #define HPDF_LANG_UZ "uz" /* Uzbek */
526
+ #define HPDF_LANG_VI "vi" /* Vietnamese */
527
+ #define HPDF_LANG_VO "vo" /* Volapuk */
528
+ #define HPDF_LANG_WO "wo" /* Wolof */
529
+ #define HPDF_LANG_XH "xh" /* Xhosa */
530
+ #define HPDF_LANG_YO "yo" /* Yoruba */
531
+ #define HPDF_LANG_ZH "zh" /* Chinese */
532
+ #define HPDF_LANG_ZU "zu" /* Zulu */
533
+
534
+
535
+ /*----------------------------------------------------------------------------*/
536
+ /*----- Graphis mode ---------------------------------------------------------*/
537
+
538
+ #define HPDF_GMODE_PAGE_DESCRIPTION 0x0001
539
+ #define HPDF_GMODE_PATH_OBJECT 0x0002
540
+ #define HPDF_GMODE_TEXT_OBJECT 0x0004
541
+ #define HPDF_GMODE_CLIPPING_PATH 0x0008
542
+ #define HPDF_GMODE_SHADING 0x0010
543
+ #define HPDF_GMODE_INLINE_IMAGE 0x0020
544
+ #define HPDF_GMODE_EXTERNAL_OBJECT 0x0040
545
+
546
+
547
+ /*----------------------------------------------------------------------------*/
548
+
549
+ #endif /* _HPDF_CONSTS_H */