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