1 /*---------------------------------------------------------------------------*
2  |              PDFlib - A library for generating PDF on the fly             |
3  +---------------------------------------------------------------------------+
4  | Copyright (c) 1997-2006 Thomas Merz and PDFlib GmbH. All rights reserved. |
5  +---------------------------------------------------------------------------+
6  |                                                                           |
7  |    This software is subject to the PDFlib license. It is NOT in the       |
8  |    public domain. Extended versions and commercial licenses are           |
9  |    available, please check http://www.pdflib.com.                         |
10  |                                                                           |
11  *---------------------------------------------------------------------------*/
12 
13 /* $Id: p_generr.h,v 1.338.2.61 2010/04/16 12:32:27 kurt Exp $
14  *
15  * PDFlib error messages
16  *
17  */
18 
19 #define P_GENERR_H
20 
21 #if	pdf_genNames
22 #define gen(n, num, nam, msg)	PDF_E_##nam = num,
23 #elif	pdf_genInfo
24 #define gen(n, num, nam, msg)	{ n, num, msg, (const char *) 0 },
25 
26 #else
27 #error	invalid inclusion of generator file
28 #endif
29 
30 
31 /* -------------------------------------------------------------------- */
32 /* Configuration 					(20xx)		*/
33 /* -------------------------------------------------------------------- */
34 
35 gen(0, 2000, UNSUPP_CRYPT, "Encryption not supported in PDFlib Lite")
36 
37 gen(0, 2002, UNSUPP_KERNING, "Kerning not supported in PDFlib Lite")
38 
39 gen(0, 2003, UNSUPP_FONTINFO, "Font info not supported in PDFlib Lite")
40 
41 gen(0, 2004, UNSUPP_SUBSET, "Subsetting not supported in PDFlib Lite")
42 
43 gen(0, 2006, UNSUPP_PDFX, "PDF/X not supported in PDFlib Lite")
44 
45 gen(1, 2008, UNSUPP_IMAGE, "$1 images not supported in this configuration")
46 
47 gen(0, 2010, UNSUPP_ICC, "ICC profiles not supported in PDFlib Lite")
48 
49 gen(0, 2012, UNSUPP_UNICODE,
50     "Unicode and glyph id addressing not supported in PDFlib Lite")
51 
52 gen(0, 2014, UNSUPP_SPOTCOLOR, "Spot colors not supported in PDFlib Lite")
53 
54 gen(0, 2015, UNSUPP_ICCBASEDCOLOR,
55     "ICC based or Lab colors not supported in PDFlib Lite")
56 
57 gen(0, 2016, UNSUPP_PDI, "PDF import (PDI) not supported in PDFlib Lite")
58 
59 gen(0, 2017, UNSUPP_PDI_CONFIG,
60     "PDF import (PDI) not supported in this configuration")
61 
62 gen(0, 2018, UNSUPP_BLOCK,
63     "Personalization with blocks not supported in PDFlib Lite")
64 
65 gen(0, 2019, UNSUPP_BLOCK_CONFIG,
66     "Personalization with blocks not supported in this configuration")
67 
68 gen(0, 2020, UNSUPP_FORMFIELDS, "Form fields not supported in PDFlib Lite")
69 
70 gen(0, 2021, UNSUPP_JAVASCRIPT, "JavaScript not supported in PDFlib Lite")
71 
72 gen(0, 2022, UNSUPP_MC, "Marked content not supported in PDFlib Lite")
73 
74 gen(0, 2024, UNSUPP_TAGGED, "Tagged PDF not supported in PDFlib Lite")
75 
76 gen(0, 2026, UNSUPP_LAYER,
77     "Optional content (layers) not supported in PDFlib Lite")
78 
79 gen(0, 2028, UNSUPP_TEXTFLOWS, "Textflow not supported in PDFlib Lite")
80 
81 gen(0, 2029, UNSUPP_GLYPHCHECK,
82     "Glyph check not supported in PDFlib Lite")
83 
84 gen(0, 2030, UNSUPP_CHARREF,
85     "Character references not supported in PDFlib Lite")
86 
87 gen(0, 2031, UNSUPP_ESCAPESEQU,
88     "Escape sequences not supported in PDFlib Lite")
89 
90 gen(0, 2032, UNSUPP_JPEG2000,
91     "JPEG2000 images not supported in PDFlib Lite")
92 
93 gen(0, 2033, UNSUPP_TABLES, "Tables not supported in PDFlib Lite")
94 
95 gen(0, 2034, UNSUPP_3DANNOT, "3D annotations not supported in PDFlib Lite")
96 
97 gen(0, 2035, UNSUPP_HONORLANG,
98     "LANG environment variable not supported in PDFlib Lite")
99 
100 gen(0, 2098, BETA_EXPIRED,
101     "PDFlib 6 beta expired -- get latest version at www.pdflib.com")
102 
103 
104 /* -------------------------------------------------------------------- */
105 /* Document, page, scoping, resource and matchbox       (21xx)          */
106 /* -------------------------------------------------------------------- */
107 
108 gen(1, 2100, DOC_SCOPE,	"Function must not be called in '$1' scope")
109 
110 gen(1, 2102, DOC_FUNCUNSUPP, "Function not supported for '$1'")
111 
112 gen(2, 2104, DOC_PDFVERSION, "$1 not supported in PDF $2")
113 
114 gen(0, 2106, DOC_EMPTY,	"Generated document doesn't contain any pages")
115 
116 gen(0, 2110, PAGE_SIZE_ACRO, "Page size incompatible with Acrobat")
117 
118 gen(2, 2112, PAGE_BADBOX, "Illegal $1 [$2]")
119 
120 gen(0, 2114, PAGE_ILLCHGSIZE,
121     "Page size cannot be changed in top-down coordinate system")
122 
123 gen(2, 2120, RES_BADRES, "Bad resource specification '$1' for category '$2'")
124 
125 gen(2, 2122, DOC_SCOPE_GET, "Can't get parameter '$1' in '$2' scope")
126 
127 gen(2, 2124, DOC_SCOPE_SET, "Can't set parameter '$1' in '$2' scope")
128 
129 gen(1, 2126, PAGE_NOSUSPEND, "Page number $1 has not been suspended")
130 
131 gen(2, 2128, PAGE_NOSUSPEND2,
132     "Page number $1 in group '$2' has not been suspended")
133 
134 gen(1, 2130, PAGE_ILLNUMBER, "Illegal page number $1")
135 
136 gen(1, 2132, PAGE_NOTEXIST, "Page number $1 does not exist")
137 
138 gen(2, 2134, PAGE_NOTEXIST2, "Page number $1 in group '$2' does not exist")
139 
140 gen(0, 2136, PAGE_NEEDGROUP, "No page group specified")
141 
142 gen(0, 2138, PAGE_NEEDGROUP2,
143     "No page group specified (use PDF_begin_page_ext)")
144 
145 gen(1, 2140, DOC_UNKNOWNGROUP, "Unknown page group '$1'")
146 
147 gen(1, 2142, DOC_GROUPMISSING,
148     "Page group '$1' is missing in list of option 'grouporder'")
149 
150 gen(0, 2144, DOC_OPTGROUPORDER,
151     "Option 'grouporder' is illegal (no page groups are specified)")
152 
153 gen(1, 2146, DOC_DUPLGROUP,
154     "Duplicate definition of group '$1' in option 'grouporder'")
155 
156 gen(1, 2148, DOC_ILL_LABELOPT,
157     "Label option '$1' is illegal for this function")
158 
159 gen(1, 2150, DOC_NEED_LABELOPT,
160     "Option 'labels' requires suboption '$1' if used with this function")
161 
162 gen(1, 2152, PAGE_TRANS_COMPAT,
163     "Page transition '$1' requires PDF 1.5")
164 
165 gen(1, 2154, PAGE_ILLROTATE, "Option 'rotate' has illegal value $1")
166 
167 gen(0, 2156, PAGE_SUSPEND_TAGGED,
168     "This function must not be used in Tagged PDF mode")
169 
170 gen(0, 2158, PAGE_SEP_NOSPOT,
171     "Option 'separationinfo' requires 'spotname' or 'spotcolor'")
172 
173 gen(0, 2160, PAGE_SEP_ILLPAGES,
174     "Option 'separationinfo' must not use 'pages' if not first page in group")
175 
176 gen(0, 2162, PAGE_SEP_NOPAGES, "Option 'separationinfo' requires 'pages'")
177 
178 gen(0, 2164, PAGE_SEP_NOINFO, "Option 'separationinfo' missing")
179 
180 gen(0, 2166, DOC_SEP_INCOMPLETE, "Incomplete separation group")
181 
182 gen(0, 2168, PAGE_TOPDOWN_NODIMS,
183     "Must specify page dimensions with option 'topdown'")
184 
185 gen(0, 2170, PAGE_NODIMS, "No dimensions specified for this page")
186 
187 gen(0, 2172, DOC_GETBUF_2GB,
188     "Can't process buffers larger than 2GB on this platform")
189 
190 gen(1, 2174, PAGE_SUSPENDED, "Page number $1 is still suspended")
191 
192 gen(0, 2176, DOC_GETBUF_LIN,
193     "Don't fetch buffer contents before PDF_end_document() when linearizing")
194 
195 gen(1, 2178, PAGE_ILLREF,
196     "A link annotation refers to non-existing page '$1'")
197 
198 gen(0, 2180, DOC_NOLINOPT_ENCATT,
199     "Optimization/linearization not supported for encrypted file attachments")
200 
201 gen(1, 2190, MBOX_NOTFOUND,
202     "Matchbox '$1' not found")
203 
204 
205 /* -------------------------------------------------------------------- */
206 /* Graphics and Text					(22xx)		*/
207 /* -------------------------------------------------------------------- */
208 
209 gen(0, 2200, GSTATE_UNMATCHEDSAVE, "Unmatched save level")
210 
211 gen(0, 2202, GSTATE_RESTORE, "Invalid restore (no matching save level)")
212 
213 gen(1, 2204, GSTATE_SAVELEVEL, "Too many save levels (max. $1)")
214 
215 gen(0, 2210, PATTERN_SELF, "Can't use a pattern within its own definition")
216 
217 gen(0, 2212, SHADING13, "Smooth shadings are not supported in PDF 1.3")
218 
219 gen(1, 2220, TEMPLATE_SELF,
220     "Can't place template handle $1 within its own definition")
221 
222 gen(1, 2222, TEXT_ALIGNCHARNOTFOUND,
223     "Character U+$1 for option 'alignchar' not found in font or encoding")
224 
225 gen(1, 2223, TEXT_BADTEXTFORMAT, "Bad textformat '$1' (must be 'bytes')")
226 
227 /* UNUSED
228 gen(1, 2230, TEXT_UNICODENOTSHOW,
229     "Can't show character with Unicode value U+$1")
230 
231 gen(1, 2232, TEXT_GLYPHIDNOTSHOW, "Can't show character with glyph id $1")
232 
233 gen(1, 2233, TEXT_BUILTINNOTSHOW,
234     "Can't show 16-bit character $1 for builtin encoding")
235 */
236 
237 gen(2, 2234, TEXT_TOOLONG, "Text with $1 bytes is too long (max. $2)")
238 
239 gen(2, 2235, TEXT_SIZENOMATCH,
240     "Size ($1) of glyphwidths list doesn't match size ($2 characters) of text")
241 
242 gen(0, 2236, TEXT_TOOMANYCODES, "Too many different unicode values (> 256)")
243 
244 gen(0, 2237, TEXT_NOFONTSIZESET, "Font size not specified for text")
245 
246 gen(0, 2238, TEXT_NOFONT, "No font set for text")
247 
248 gen(0, 2239, TEXT_ITALUNSUPP,
249     "Parameter 'italicangle' not supported for vertical writing mode")
250 
251 gen(1, 2240, TEXT_NOFONT_PAR, "No font set for parameter '$1'")
252 
253 
254 
255 
256 
257 
258 /* -------------------------------------------------------------------- */
259 /* Color						(23xx)		*/
260 /* -------------------------------------------------------------------- */
261 
262 gen(0, 2300, COLOR_SPOT,
263 "Spot color can not be based on a Pattern, Indexed, or Separation color space")
264 
265 gen(2, 2302, COLOR_BADSPOT, "Color name '$1' not found in $2 table")
266 
267 gen(1, 2304, COLOR_SPOTBW,
268     "Alternate color for custom spot color '$1' is black or white")
269 
270 gen(1, 2306, COLOR_UNLIC_SPOTCOLOR, "$1 spot colors not licensed")
271 
272 gen(0, 2308, COLOR_UNSUPP_SPOTNAME, "Unicode spot color names not supported")
273 
274 gen(2, 2309, COLOR_REDEFINE_SPOTNAME,
275     "Option '$1': spot color '$2' has already an alternative color")
276 
277 
278 gen(1, 2350, COLOR_INVALPATT,
279     "Pattern with painttype 2 can not be colorized with another pattern")
280 
281 gen(0, 2352, COLOR_INVALSPEC,
282     "Color specification not allowed while defining a pattern with painttype 2")
283 
284 /* -------------------------------------------------------------------- */
285 /* Image						(24xx)		*/
286 /* -------------------------------------------------------------------- */
287 
288 gen(2, 2400, IMAGE_CORRUPT, "Corrupt $1 image file '$2'")
289 
290 gen(4, 2401, IMAGE_TOO_LARGE, "$1 image '$2' too large ($3 x $4)")
291 
292 gen(3, 2402, IMAGE_NOPAGE, "Requested page $1 in $2 image '$3' not found")
293 
294 gen(2, 2404, IMAGE_BADDEPTH,
295     "Bad number of bits per pixel ($1) in image file '$2'")
296 
297 gen(1, 2406, IMAGE_BADMASK,
298     "Image '$1' not suitable as mask (more than one color component)")
299 
300 gen(2, 2407, IMAGE_NOMATCH,
301     "Image '$1' not suitable as mask for image '$2' (different orientation)")
302 
303 gen(1, 2408, IMAGE_MASK1BIT13,
304     "Image '$1' with more than 1 bit not supported as mask in PDF 1.3")
305 
306 gen(1, 2410, IMAGE_COLORMAP, "Couldn't read colormap in image '$1'")
307 
308 gen(2, 2412, IMAGE_BADCOMP,
309     "Bad number of color components ($1) in image '$2'")
310 
311 gen(1, 2414, IMAGE_COLORIZE,
312     "Can't colorize image '$1' with more than 1 component")
313 
314 gen(1, 2416, IMAGE_ICC, "Couldn't handle embedded ICC profile in image '$1'")
315 
316 gen(1, 2418, IMAGE_ICC2,
317     "ICC profile for image file '$1' doesn't match image data")
318 
319 gen(0, 2420, IMAGE_THUMB, "More than one thumbnail for this page")
320 
321 gen(1, 2422, IMAGE_THUMB_MULTISTRIP,
322     "Can't use multi-strip image $1 as thumbnail")
323 
324 gen(1, 2424, IMAGE_THUMB_CS,
325     "Unsupported color space in thumbnail image handle $1")
326 
327 gen(2, 2426, IMAGE_THUMB_SIZE, "Thumbnail image $1 larger than $2 pixels")
328 
329 gen(2, 2428, IMAGE_OPTUNSUPP,
330     "Option '$1' for image type '$2' not supported")
331 
332 gen(2, 2430, IMAGE_OPTUNREAS,
333     "Option '$1' for image type '$2' doesn't have any effect")
334 
335 gen(2, 2432, IMAGE_OPTBADMASK, "Option '$1' has bad image mask $2")
336 
337 gen(1, 2434, IMAGE_UNKNOWN, "Unknown image type in file '$1'")
338 
339 gen(0, 2436, IMAGE_NOADJUST,
340     "Option 'adjustpage' must not be used in top-down system")
341 
342 gen(1, 2437, IMAGE_OPI_ILLRECT, "Option '$1' has bad rectangle")
343 
344 gen(2, 2438, IMAGE_OPI_ILLMAPSIZE, "Option '$1': Number of values must be $2")
345 
346 gen(1, 2439, IMAGE_OPI_ILLPARALL, "Option '$1' has bad parallelogram")
347 
348 gen(2, 2440, RAW_ILLSIZE,
349     "Size ($1 bytes) of raw image file '$2' doesn't match specified options")
350 
351 gen(2, 2442, IMAGE_TYPUNSUPP, "Image type '$1' is not supported in PDF $2")
352 
353 gen(1, 2444, BMP_VERSUNSUPP,
354     "Version of BMP image file '$1' not supported")
355 
356 gen(1, 2446, BMP_COMPUNSUPP,
357     "Compression in BMP image file '$1' not supported")
358 
359 gen(2, 2450, JPEG_COMPRESSION,
360     "JPEG compression scheme $1 in file '$2' not supported in PDF")
361 
362 /* UNUSED
363 gen(1, 2452, JPEG_MULTISCAN,
364     "JPEG file '$1' contains multiple scans, which is not supported in PDF")
365 */
366 
367 gen(2, 2454, JPEG_TRANSCODE,
368     "Problems during JPEG transcoding in file '$1' ($2)")
369 
370 /* UNUSED
371 gen(1, 2460, GIF_LZWOVERFLOW, "LZW code size overflow in GIF file '$1'")
372 
373 gen(1, 2462, GIF_LZWSIZE,
374     "Color palette in GIF file '$1' with fewer than 128 colors not supported")
375 
376 gen(1, 2464, GIF_INTERLACED, "Interlaced GIF image '$1' not supported")
377 
378 gen(2, 2470, TIFF_UNSUPP_CS,
379     "Couldn't open TIFF image '$1' (unsupported color space; photometric $2)")
380 
381 gen(2, 2472, TIFF_UNSUPP_PREDICT,
382     "Couldn't open TIFF image '$1' (unsupported predictor tag $2)")
383 
384 gen(1, 2474, TIFF_UNSUPP_LZW, "Couldn't open LZW-compressed TIFF image '$1')")
385 
386 gen(1, 2476, TIFF_UNSUPP_LZW_PLANES,
387     "Couldn't open TIFF image '$1' (separate planes with LZW compression)")
388 
389 gen(1, 2478, TIFF_UNSUPP_LZW_ALPHA,
390     "Couldn't open TIFF image '$1' (alpha channel with LZW compression)")
391 
392 gen(2, 2480, TIFF_UNSUPP_JPEG,
393     "Couldn't open TIFF image '$1' (JPEG compression scheme $2)")
394 
395 gen(1, 2482, TIFF_UNSUPP_JPEG_TILED,
396     "Couldn't open TIFF image '$1' (tiled image with JPEG compression)")
397 */
398 
399 gen(2, 2483, TIFF_UNSUPP_COLORSPACE,
400     "Color space (photometric) $1 in TIFF image '$2' not supported")
401 
402 gen(1, 2484, TIFF_UNSUPP_SEPARATE,
403     "Couldn't open TIFF image '$1' (separate image planes not supported)")
404 
405 gen(1, 2485, TIFF_TILE_UNSUPP,
406     "Couldn't open TIFF image '$1' "
407     "(separate image planes with tiles not supported)")
408 
409 gen(2, 2486, TIFF_UNSUPP_SEP_NONCMYK,
410     "Couldn't open TIFF image '$1' (unsupported inkset tag $2)")
411 
412 gen(1, 2488, TIFF_MASK_MULTISTRIP, "Can't mask multistrip TIFF image '$1'")
413 
414 gen(2, 2489, TIFF_CLIPPPATH_NOTFOUND,
415     "Couldn't find clipping path '$1' in TIFF image '$2'")
416 
417 gen(1, 2490, TIFF_16BITCMYK_UNSUPP,
418     "Compressed 16-bit CMYK TIFF image '$1' not supported")
419 
420 gen(1, 2491, TIFF_16BIT_UNSUPP,
421     "More than 16 bits per component in TIFF image '$1' not supported")
422 
423 gen(1, 2492, TIFF_CMYK_MASK, "Couldn't open TIFF image '$1' (CMYK with mask)")
424 
425 gen(2, 2493, TIFF_UNSUPP_COMPRESSION,
426     "Compression scheme $1 in TIFF image '$2' not supported")
427 
428 gen(1, 2494, JPX_FORMATUNSUPP,
429     "JPEG2000 flavor in image file '$1' not supported")
430 
431 gen(1, 2496, JPX_RAWDATAUNSUPP,
432     "Raw JPEG2000 code stream in image file '$1' not supported")
433 
434 gen(1, 2498, JPX_COMPOUNDUNSUPP,
435     "Compound JPEG2000 (JPM) image file '$1' not supported")
436 
437 gen(1, 2499, TIFF_BPC_UNSUPP,
438 "TIFF image '$1' contains bpc that not equal to 1,2, 4, 8, 16, not supported")
439 
440 /* -------------------------------------------------------------------- */
441 /* Font							(25xx)		*/
442 /* -------------------------------------------------------------------- */
443 
444 gen(2, 2500, FONT_CORRUPT, "Corrupt $1 font file $2")
445 
446 gen(2, 2501, FONT_PREFIX, "Font '$1' with encoding '$2': ")
447 
448 gen(0, 2502, FONT_BADENC, "Font doesn't support encoding")
449 
450 gen(3, 2503, FONT_PREFIX2, "Font '$1' with encoding '$2' (changed to '$3'): ")
451 
452 gen(1, 2504, FONT_FORCEENC,
453     "Font doesn't support encoding (encoding '$1' will be used)")
454 
455 gen(0, 2505, FONT_NEEDUCS2,
456     "Encoding not supported (use Unicode-compatible CMap)")
457 
458 /* UNUSED
459 gen(0, 2506, FONT_FORCEEMBED,
460     "Font will be embedded (encoding requires CID font")
461 */
462 
463 gen(1, 2507, FONT_INAPPROPENC,
464     "Encoding not appropriate for the font (only $1 glyphs found)")
465 
466 /* UNUSED
467 gen(1, 2508, FONT_BADTEXTFORM,
468     "Current text format not allowed for builtin encoding")
469 */
470 
471 gen(0, 2509, FONT_FORCECVTUNI,
472     "Native text code (keepnative) for this font configuration will be ignored")
473 
474 gen(0, 2514, FONT_EMBEDMM, "Multiple Master font cannot be embedded")
475 
476 gen(0, 2516, FONT_NOMETRICS,
477     "Font file (AFM, PFM, TTF, OTF etc.) or host font not found")
478 
479 gen(0, 2517, FONT_NOOUTLINE_PS,
480     "Font cannot be embedded (PFA or PFB font file not found)")
481 
482 /* Unused
483 gen(0, 2518, FONT_NOOUTLINE, "File with outline data not found")
484 */
485 
486 gen(0, 2519, FONT_NOOUTLINE_TT,
487     "Font cannot be embedded (TTF or OTF font file not found)")
488 
489 /* Unused
490 gen(0, 2520, FONT_NOGLYPHID, "Font doesn't contain any glyph IDs")
491 */
492 
493 gen(0, 2522, FONT_FORCEEMBED2, "Metadata requires embedding")
494 
495 gen(0, 2523, FONT_CORRUPT_PFA,
496     "Corrupt PFA font data (invalid hex code after 'currentfile eexec')")
497 
498 gen(0, 2530, CJK_UNSUPP_REGISTRY,
499     "Font not supported (contains non-Adobe registry in CMap)")
500 
501 gen(0, 2531, CJK_UNSUPP_CHARCOLL,
502     "CJK font doesn't support encoding (use a compatible predefined CMap)")
503 
504 gen(0, 2532, FONT_EMBEDCMAP,
505     "Standard CJK font with predefined CMap cannot be embedded")
506 
507 gen(0, 2533, FONT_ONLY_CMAP,
508     "Font doesn't support encoding (use predefined CMap or 'unicode' encoding)")
509 
510 /* Unused
511 gen(0, 2534, FONT_EMBEDSTYLE,
512     "Option 'fontstyle' not allowed for embedded fonts")
513 */
514 
515 gen(0, 2535, FONT_UNSUPP_CMAP,
516     "Font doesn't support predefined CMap")
517 
518 gen(2, 2536, FONT_UNSUPPOPTION,
519     "Option '$1' not supported for font type '$2'")
520 
521 gen(0, 2538, FONT_IGNOREVERTICAL,
522     "Option 'vertical' ignored because of predefined CMap or font name resp.")
523 
524 gen(1, 2540, T3_BADBBOX,
525     "Bounding box values must be 0 for colorized font")
526 
527 gen(1, 2541, T3_FONT_PREFIX, "Type3 font '$1': ")
528 
529 gen(1, 2542, T3_GLYPH, "Glyph '$1' already defined")
530 
531 gen(0, 2544, T3_FONTEXISTS, "Already exists")
532 
533 gen(0, 2545, T3_FONTSUBSET, "Font with subsetting can only be loaded once")
534 
535 gen(1, 2546, T3_GLYPHMISSING, "Outlines of glyph '$1' not defined")
536 
537 gen(1, 2547, T3_OUTLINESMISSING, "Outlines of Type3 font '$1' missing")
538 
539 gen(1, 2548, T3_UNKOWNGLYPH, "Glyph '$1' unknown")
540 
541 gen(1, 2549, T3_MISSNOTDEF, "Glyph for character '.notdef' is missing")
542 
543 gen(1, 2550, T1_BADCHARSET,
544     "PDFlib doesn't support encoding (dfCharSet $1 in PFM file unknown)")
545 
546 gen(1, 2551, T1_UNSUPP_FORMAT, "'$1' metrics file type not supported")
547 
548 gen(2, 2554, T1_AFMBADKEY, "Unknown key '$1' in AFM file '$2'")
549 
550 gen(1, 2558, T1_NOFONT, "'$1' is not a PostScript Type1 font file")
551 
552 gen(1, 2559, T1_RESOURCENOTLOADED,
553     "Couldn't load PostScript font resource file (system error code $1)")
554 
555 gen(2, 2560, FONT_CODENOTFOUND1,
556     "Glyph with character code $1 not found in font '$2'")
557 
558 gen(2, 2561, FONT_CODENOTFOUNDREP1,
559     "Glyph with character code $1 not found in font '$2' (will be replaced)")
560 
561 gen(2, 2562, FONT_UNICODENOTFOUND,
562     "Glyph with Unicode value U+$1 not found in font '$2'")
563 
564 gen(2, 2563, FONT_UNICODENOTFOUNDREP,
565     "Glyph with Unicode value U+$1 not found in font '$2' (will be replaced)")
566 
567 gen(2, 2564, FONT_GLYPHIDNOTFOUND,
568     "Glyph with id $1 not found in font '$2'")
569 
570 gen(3, 2566, FONT_CODENOTFOUND2,
571     "Glyph with code $1 and Unicode value U+$2 not found in font '$3'")
572 
573 gen(3, 2567, FONT_CODENOTFOUNDREP2,
574     "Glyph with code $1 and Unicode value U+$2 not found in font '$3' "
575     "(will be replaced)")
576 
577 gen(2, 2569, FONT_NOTFULFILL,
578     "Option '$1' cannot be fulfilled (same font already loaded with no$1)")
579 
580 /* -------------------------------------------------------------------- */
581 /* Encoding						(26xx)		*/
582 /* -------------------------------------------------------------------- */
583 
584 /* MOVED to pc_generr.h, #1552
585 gen(1, 2600, ENC_NOTFOUND, "Couldn't find encoding '$1'")
586 */
587 
588 gen(1, 2602, ENC_UNSUPP, "Code page '$1' not supported")
589 
590 gen(1, 2606, ENC_CANTQUERY, "Can't query encoding '$1'")
591 
592 gen(1, 2608, ENC_CANTCHANGE, "Can't change encoding '$1'")
593 
594 gen(1, 2610, ENC_INUSE,
595     "Encoding '$1' can't be changed since it has already been used")
596 
597 /* MOVED to pc_generr.h, #1550
598 gen(2, 2612, ENC_TOOLONG, "Encoding name '$1' too long (max. $2)")
599 
600    MOVED to pc_generr.h, #1551
601 gen(2, 2614, ENC_BADLINE, "Syntax error in encoding file '$1' (line '$2')")
602 */
603 
604 gen(0, 2616, ENC_GLYPHORCODE, "Glyph name or Unicode value required")
605 
606 gen(3, 2618, ENC_BADGLYPH,
607     "Glyph name '$1' for Unicode value U+$2 differs from AGL name '$3'")
608 
609 gen(3, 2620, ENC_BADUNICODE,
610     "Unicode value U+$1 for glyph name '$2' differs from AGL value U+$3")
611 
612 gen(2, 2622, ENC_BADFONT,
613     "Current font $1 wasn't specified with encoding '$2'")
614 
615 gen(1, 2640, ENC_BADHYPTEXTENC, "Bad hypertext encoding '$1'")
616 
617 gen(1, 2650, ENC_UNSUPPENCFORMAT,
618     "Parameter or option '$1' not supported in Unicode-capable languages")
619 
620 /* Unused
621 gen(2, 2670, CMAP_ILLCODESEQU, "Illegal code sequence in '$1' for CMap '$2'")
622 */
623 
624 
625 
626 /* -------------------------------------------------------------------- */
627 /* Hypertext, form fields, actions, annotations		(28xx)		*/
628 /* -------------------------------------------------------------------- */
629 
630 gen(2, 2802, HYP_OPTIGNORE_FORTYPE,
631     "Option '$1' for destination type '$2' doesn't have any effect")
632 
633 gen(1, 2804, HYP_OPTIGNORE_FORELEM,
634     "Option '$1' for hypertext function will be ignored")
635 
636 gen(2, 2820, FF_OPTEFFLESS_FORTYPE,
637     "Option '$1' for field type '$2' doesn't have any effect")
638 
639 gen(1, 2822, FF_GROUPMISSING,
640     "Required field group missing for radio button field '$1'")
641 
642 gen(1, 2824, FF_FONTMISSING, "Font not specified for field '$1'")
643 
644 gen(2, 2826, FF_OPTIONMISSING,
645     "Option '$1' not specified for field '$2'")
646 
647 gen(1, 2828, FF_CIDFONT,
648     "Specified font '$1' not allowed for fields (encoding not supported)")
649 
650 gen(1, 2830, FF_NOEMBEDFONT,
651     "Specified font '$1' not allowed for fields (must be embedded)")
652 
653 gen(1, 2832, FF_SUBSETTFONT,
654     "Specified font '$1' not allowed for fields (must not be subset)")
655 
656 gen(2, 2833, FF_NOPDFDOCFONT,
657     "Specified encoding '$1' of font '$2' not recommended for fields "
658     "(please use encoding 'pdfdoc')")
659 
660 gen(1, 2834, FF_CAPTMISSING, "No caption or icon specified for field '$1'")
661 
662 gen(0, 2836, FF_DIFFSTRLISTS,
663     "Options 'itemnamelist' and 'itemtextlist' contain "
664     "different numbers of strings")
665 
666 gen(2, 2838, FF_INVALINDEX, "Option '$1' has invalid list index '$2'")
667 
668 gen(2, 2840, FF_NOTFOUND,
669     "Illegal field pathname '$1' (name '$2' not found)")
670 
671 gen(2, 2842, FF_NAMEEXISTS,
672     "Illegal field pathname '$1' (name '$2' already exists)")
673 
674 gen(2, 2844, FF_NOTGROUP,
675     "Illegal field pathname '$1' ('$2' is not a field group)")
676 
677 gen(3, 2846, FF_TYPENOTMATCH,
678     "Type '$1' of field '$2' doesn't match type '$3' of group")
679 
680 gen(0, 2848, FF_ITEMNAMEORNOT,
681 "Either all or none of the buttons/checkboxes in a group can have item names")
682 
683 gen(2, 2850, FF_OPTEFFONLY,
684     "Option '$1' for field type '$2' only has an effect for highlight=push")
685 
686 gen(2, 2852, FF_ILLUNINAME,
687     "Illegal field name '$1' (Unicode names are not supported in PDF $2")
688 
689 gen(0, 2854, FF_DEMOLIMIT,
690     "No more than 10 fields can be created with the evaluation version")
691 
692 gen(0, 2856, FF_RICHTEXT,
693     "fontsize 0 not supported for fields with rich text")
694 
695 gen(2, 2860, ACT_OPTIGNORE_FORTYPE,
696     "Option '$1' for action type '$2' doesn't have any effect")
697 
698 gen(2, 2862, ACT_BADACTTYPE, "Action type '$1' for event '$2' not allowed")
699 
700 
701 gen(2, 2880, ANN_OPTEFFLESS_FORTYPE,
702     "Option '$1' for annotation type '$2' doesn't have any effect")
703 
704 gen(1, 2882, ANN_NOSTDFONT,
705     "Font '$1' not allowed for annotations (not a core or standard CJK font)")
706 
707 gen(1, 2884, ANN_BADNUMCOORD, "Option '$1' has bad number of coordinates")
708 
709 gen(1, 2886, ANN_OPTALRDEF,
710     "Option '$1' already defined in option 'custom'")
711 
712 gen(1, 2888, ANN_ILLCUSTOMKEY,
713     "Option 'custom' uses illegal key '$1' (already defined in PDF)")
714 
715 gen(0, 2890, ANN_ILLTEMPLATE,
716     "Option 'movieposter' has bad template handle "
717     "(only images with RGB or Gray color spaces supported)")
718 
719 gen(1, 2892, ANN_ACTIONNOTALLOWED,
720     "Option 'action' not allowed for annotation type '$1'")
721 
722 /* -------------------------------------------------------------------- */
723 /* Internal 						(29xx)		*/
724 /* -------------------------------------------------------------------- */
725 
726 gen(1, 2900, INT_BADSCOPE, "Bad scope '$1'")
727 
728 gen(1, 2902, INT_BADANNOT, "Bad annotation type '$1'")
729 
730 gen(3, 2904, INT_BADCS,
731 "Unknown color space (function $1, index $2, type $3)")
732 
733 gen(1, 2906, INT_BADALTERNATE, "Bad alternate color space $1")
734 
735 gen(1, 2908, INT_BADPROFILE, "Unknown number of profile components ($1)")
736 
737 gen(1, 2910, INT_SSTACK_OVER, "State stack overflow in function '$1'")
738 
739 gen(1, 2912, INT_SSTACK_UNDER, "State stack underflow in function '$1'")
740 
741 gen(3, 2914, INT_WRAPPER, "Error in PDFlib $1 wrapper function $2 ($3)")
742 
743 gen(0, 2990, OT_UNSUPP_SID2CID,
744 "Accented characters not supported; use autocidfont=false in PDF_load_font()")
745 
746 
747 
748 
749 
750 
751 
752 #undef	gen
753 #undef	pdf_genNames
754 #undef	pdf_genInfo
755 
756 
757 
758