hpdf_consts.h 24 KB

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