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