2 * << Haru Free PDF Library >> -- hpdf_consts.h
4 * URL: http://libharu.org
6 * Copyright (c) 1999-2006 Takeshi Kanno <takeshi_kanno@est.hi-ho.ne.jp>
7 * Copyright (c) 2007-2009 Antony Dovgal <tony@daylessday.org>
9 * Permission to use, copy, modify, distribute and sell this software
10 * and its documentation for any purpose is hereby granted without fee,
11 * provided that the above copyright notice appear in all copies and
12 * that both that copyright notice and this permission notice appear
13 * in supporting documentation.
14 * It is provided "as is" without express or implied warranty.
19 #ifndef _HPDF_CONSTS_H
20 #define _HPDF_CONSTS_H
22 /*----------------------------------------------------------------------------*/
28 #define HPDF_NOERROR 0
30 /*----- default values -------------------------------------------------------*/
32 /* buffer size which is required when we convert to character string. */
33 #define HPDF_TMP_BUF_SIZ 512
34 #define HPDF_SHORT_BUF_SIZ 32
35 #define HPDF_REAL_LEN 11
36 #define HPDF_INT_LEN 11
37 #define HPDF_TEXT_DEFAULT_LEN 256
38 #define HPDF_UNICODE_HEADER_LEN 2
39 #define HPDF_DATE_TIME_STR_LEN 23
41 /* length of each item defined in PDF */
42 #define HPDF_BYTE_OFFSET_LEN 10
43 #define HPDF_OBJ_ID_LEN 7
44 #define HPDF_GEN_NO_LEN 5
46 /* default value of Graphic State */
47 #define HPDF_DEF_FONT "Helvetica"
48 #define HPDF_DEF_PAGE_LAYOUT HPDF_PAGE_LAYOUT_SINGLE
49 #define HPDF_DEF_PAGE_MODE HPDF_PAGE_MODE_USE_NONE
50 #define HPDF_DEF_WORDSPACE 0
51 #define HPDF_DEF_CHARSPACE 0
52 #define HPDF_DEF_FONTSIZE 10
53 #define HPDF_DEF_HSCALING 100
54 #define HPDF_DEF_LEADING 0
55 #define HPDF_DEF_RENDERING_MODE HPDF_FILL
56 #define HPDF_DEF_RISE 0
57 #define HPDF_DEF_RAISE HPDF_DEF_RISE
58 #define HPDF_DEF_LINEWIDTH 1
59 #define HPDF_DEF_LINECAP HPDF_BUTT_END
60 #define HPDF_DEF_LINEJOIN HPDF_MITER_JOIN
61 #define HPDF_DEF_MITERLIMIT 10
62 #define HPDF_DEF_FLATNESS 1
63 #define HPDF_DEF_PAGE_NUM 1
65 #define HPDF_BS_DEF_WIDTH 1
67 /* defalt page-size */
68 #define HPDF_DEF_PAGE_WIDTH 595.276F
69 #define HPDF_DEF_PAGE_HEIGHT 841.89F
71 /*---------------------------------------------------------------------------*/
72 /*----- compression mode ----------------------------------------------------*/
74 #define HPDF_COMP_NONE 0x00
75 #define HPDF_COMP_TEXT 0x01
76 #define HPDF_COMP_IMAGE 0x02
77 #define HPDF_COMP_METADATA 0x04
78 #define HPDF_COMP_ALL 0x0F
79 /* #define HPDF_COMP_BEST_COMPRESS 0x10
80 * #define HPDF_COMP_BEST_SPEED 0x20
82 #define HPDF_COMP_MASK 0xFF
85 /*----------------------------------------------------------------------------*/
86 /*----- permission flags (only Revision 2 is supported)-----------------------*/
88 #define HPDF_ENABLE_READ 0
89 #define HPDF_ENABLE_PRINT 4
90 #define HPDF_ENABLE_EDIT_ALL 8
91 #define HPDF_ENABLE_COPY 16
92 #define HPDF_ENABLE_EDIT 32
95 /*----------------------------------------------------------------------------*/
96 /*------ viewer preferences definitions --------------------------------------*/
98 #define HPDF_HIDE_TOOLBAR 1
99 #define HPDF_HIDE_MENUBAR 2
100 #define HPDF_HIDE_WINDOW_UI 4
101 #define HPDF_FIT_WINDOW 8
102 #define HPDF_CENTER_WINDOW 16
103 #define HPDF_PRINT_SCALING_NONE 32
106 /*---------------------------------------------------------------------------*/
107 /*------ limitation of object implementation (PDF1.4) -----------------------*/
109 #define HPDF_LIMIT_MAX_INT 2147483647
110 #define HPDF_LIMIT_MIN_INT -2147483647
112 #define HPDF_LIMIT_MAX_REAL 32767
113 #define HPDF_LIMIT_MIN_REAL -32767
115 #define HPDF_LIMIT_MAX_STRING_LEN 65535
116 #define HPDF_LIMIT_MAX_NAME_LEN 127
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
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
134 /*---------------------------------------------------------------------------*/
135 /*------ limitation of various properties -----------------------------------*/
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
151 #define HPDF_MAX_JWW_NUM 128
153 /*----------------------------------------------------------------------------*/
154 /*----- country code definition ----------------------------------------------*/
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 */
395 /*----------------------------------------------------------------------------*/
396 /*----- lang code definition -------------------------------------------------*/
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 */
535 /*----------------------------------------------------------------------------*/
536 /*----- Graphis mode ---------------------------------------------------------*/
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
547 /*----------------------------------------------------------------------------*/
549 #endif /* _HPDF_CONSTS_H */