Debian Codegraph @

pdf/pdf_warnings.h

raw
1 /* Copyright (C) 2022-2025 Artifex Software, Inc.
2 All Rights Reserved.
3
4 This software is provided AS-IS with no warranty, either express or
5 implied.
6
7 This software is distributed under license and may not be copied,
8 modified or distributed except as expressly authorized under the terms
9 of the license contained in the file LICENSE in this distribution.
10
11 Refer to licensing information at http://www.artifex.com or contact
12 Artifex Software, Inc., 39 Mesa Street, Suite 108A, San Francisco,
13 CA 94129, USA, for further information.
14 */
15
16 #ifndef PARAM
17 #define PARAM(A,B) A
18 #endif
19 PARAM(W_PDF_NOWARNING, "no warning"),
20 PARAM(W_PDF_BAD_XREF_SIZE, "incorrect xref size"),
21 PARAM(W_PDF_BAD_XREF_ENTRY_SIZE, "xref entry not exactly 20 bytes"),
22 PARAM(W_PDF_BAD_XREF_ENTRY_NO_EOL, "xref entry not terminated with EOL"),
23 PARAM(W_PDF_BAD_XREF_ENTRY_FORMAT, "xref entry not valid format"),
24 PARAM(W_PDF_BAD_INLINEFILTER, "used inline filter name inappropriately"),
25 PARAM(W_PDF_BAD_INLINECOLORSPACE, "used inline colour space inappropriately"),
26 PARAM(W_PDF_BAD_INLINEIMAGEKEY, "used inline image key inappropriately"),
27 PARAM(W_PDF_IMAGE_ERROR, "recoverable image error"),
28 PARAM(W_PDF_BAD_IMAGEDICT, "recoverable error in image dictionary"),
29 PARAM(W_PDF_BAD_IMAGENAME, "An image dictionary has a /Name key whose value is not a name object"),
30 PARAM(W_PDF_TOOMANYQ, "encountered more Q than q"),
31 PARAM(W_PDF_TOOMANYq, "encountered more q than Q"),
32 PARAM(W_PDF_STACKGARBAGE, "garbage left on stack"),
33 PARAM(W_PDF_STACKUNDERFLOW, "stack underflow"),
34 PARAM(W_PDF_GROUPERROR, "error in group definition"),
35 PARAM(W_PDF_OPINVALIDINTEXT, "invalid operator used in text block"),
36 PARAM(W_PDF_NOTINCHARPROC, "used invalid operator in CharProc"),
37 PARAM(W_PDF_NESTEDTEXTBLOCK, "BT found inside a text block"),
38 PARAM(W_PDF_ETNOTEXTBLOCK, "ET found outside text block"),
39 PARAM(W_PDF_TEXTOPNOBT, "text operator outside text block"),
40 PARAM(W_PDF_DEGENERATETM, "degenerate text matrix"),
41 PARAM(W_PDF_BADICC_USE_ALT, "Invalid ICC colour profile, using alternate"),
42 PARAM(W_PDF_BADICC_USECOMPS, "Invalid ICC colour profile, no (or bad) Alternate specified, using /N to select a device space"),
43 PARAM(W_PDF_BADTRSWITCH, "bad value for text rendering mode"),
44 PARAM(W_PDF_BADSHADING, "error in shading"),
45 PARAM(W_PDF_BADPATTERN, "error in pattern"),
46 PARAM(W_PDF_NONSTANDARD_OP, "non standard operator found - ignoring"),
47 PARAM(W_PDF_NUM_EXPONENT, "number uses illegal exponent form"),
48 PARAM(W_PDF_STREAM_HAS_CONTENTS, "Stream has inappropriate /Contents entry"),
49 PARAM(W_PDF_STREAM_BAD_DECODEPARMS, "bad DecodeParms"),
50 PARAM(W_PDF_STREAM_BAD_KEYWORD, "A stream keyword was not terminated with a linefeed (0x0A)"),
51 PARAM(W_PDF_MASK_ERROR, "error in Mask"),
52 PARAM(W_PDF_ANNOT_AP_ERROR, "error in annotation Appearance"),
53 PARAM(W_PDF_BAD_NAME_ESCAPE, "badly escaped name"),
54 PARAM(W_PDF_TYPECHECK, "typecheck error"),
55 PARAM(W_PDF_BAD_TRAILER, "bad trailer dictionary"),
56 PARAM(W_PDF_ANNOT_ERROR, "error in annotation"),
57 PARAM(W_PDF_BAD_ICC_PROFILE_LINK, "failed to create ICC profile link"),
58 PARAM(W_PDF_OVERFLOW_REAL, "overflowed a real reading a number, assuming 0"),
59 PARAM(W_PDF_INVALID_REAL, "failed to read a valid number, assuming 0"),
60 PARAM(W_PDF_DEVICEN_USES_ALL, "A DeviceN space used the /All ink name."),
61 PARAM(W_PDF_BAD_MEDIABOX, "Couldn't retrieve MediaBox for page, using current media size"),
62 PARAM(W_PDF_CA_OUTOFRANGE, "CA or ca value not in range 0.0 to 1.0, clamped to range."),
63 PARAM(W_PDF_INVALID_DEFAULTSPACE, "Invalid DefaultGray, DefaultRGB or DefaultCMYK space specified, ignored."),
64 PARAM(W_PDF_INVALID_DECRYPT_LEN, "Invalid /Length supplied in Encryption dictionary."),
65 PARAM(W_PDF_SPURIOUS_DECRYPT_LEN, "/Length present in Encryption dictionary and /V is neither 2 nor 3"),
66 PARAM(W_PDF_INVALID_FONT_BASEENC, "Ignoring invalid BaseEncoding name in font"),
67 PARAM(W_PDF_GROUP_HAS_COLORSPACE, "Group attributes dictionary has /ColorSpace instead of /CS"),
68 PARAM(W_PDF_GROUP_BAD_BC, "Group attributes dictionary /BC differs in number of components from the colour space"),
69 PARAM(W_PDF_INT_AS_REAL, "found real number when expecting int"),
70 PARAM(W_PDF_NO_TREE_LIMITS, "Name tree node missing required Limits entry"),
71 PARAM(W_PDF_BAD_TREE_LIMITS, "Name tree node Limits array does not have 2 entries"),
72 PARAM(W_PDF_NAMES_ARRAY_SIZE, "Name tree Names array size not a mulitple of 2"),
73 PARAM(W_PDF_MISSING_NAMED_RESOURCE, "Couldn't find a named resource"),
74 PARAM(W_PDF_BAD_OUTLINES, "A problem was encountered trying to preserve the Outlines"),
75 PARAM(W_PDF_OUTLINECHILD_NO_COUNT, "An Outline with descendants is missing the required /Count key"),
76 PARAM(W_PDF_BAD_INFO, "The file has a bad /Info dictionary"),
77 PARAM(W_PDF_INFO_NOT_INDIRECT, "The file trailer contains an Info dictionary object, not an indirect reference"),
78 PARAM(W_PDF_BAD_EMBEDDEDFILES, "File has Embedded files which could not be preserved"),
79 PARAM(W_PDF_BAD_ACROFORM, "Bad AcroForm detected"),
80 PARAM(W_PDF_BAD_OUTPUTINTENTS, "Bad OutputIntents detected"),
81 PARAM(W_PDF_BAD_PAGELABELS, "A problem was encountered trying to preserve the page Labels"),
82 PARAM(W_PDF_XREF_OBJECT0_NOT_FREE, "Xref entry for object 0 not a free entry."),
83 PARAM(W_PDF_ZEROSCALE_ANNOT, "Annotation has a scale factor of zero and was ignored"),
84 PARAM(W_PDF_SMASK_MISSING_S, "An SMask is missing the Subtype (/S) key, assuming Luminosity"),
85 PARAM(W_PDF_SMASK_UNKNOWN_S, "An SMask has an unknown value for the Subtype (/S) key, assuming Luminosity"),
86 PARAM(W_PDF_SMASK_INVALID_TR, "SMask had a transfer function (/TR) with number of inputs or outputs not 1"),
87 PARAM(W_PDF_SMASK_UNKNOWN_TR, "SMask had a named transfer function (/TR) with an unknown name (not /Identity)"),
88 PARAM(W_PDF_SMASK_UNKNOWN_TR_TYPE, "SMask had a transfer function (/TR) of the wrong object type"),
89 PARAM(W_PDF_SMASK_UNKNOWN_TYPE, "SMask had an unknwon Type (not /Mask)"),
90 PARAM(W_PDF_MISSING_WHITE_OPS, "Possible missing white space between operators"),
91 PARAM(W_PDF_ANNOT_BAD_TYPE, "Annotation is not a dictionary, ignoring"),
92 PARAM(W_PDF_VERSION_NO_EOL, "PDF version number not immediately followed with EOL"),
93 PARAM(W_PDF_D1_COLOUR_OP, "A type 3 glyph description, beginning with d1, tried to set a colour"),
94 PARAM(W_PDF_FORM_CLIPPEDOUT, "A Form XObject had a BBox with a width or height of 0"),
95 PARAM(W_PDF_FDESC_BAD_FONTNAME, "A FontDescriptor has a missing or bad /FontName"),
96 PARAM(W_PDF_GARBAGE_B4HDR, "File has some garbage before %PDF-"),
97 PARAM(W_PDF_FONTRESOURCE_TYPE, "A Font key in a Resources dictionary has a value of the wrong type"),
98 PARAM(W_PDF_UNBLANACED_BT, "A page ended after a BT had been executed and without a mtching ET"),
99 PARAM(W_PDF_MISMATCH_GENERATION, "The generation number of an indirectly referenced object did not match the xref"),
100 PARAM(W_PDF_BAD_RENDERINGINTENT, "A ri or /RI used an unknown named rendering intent"),
101 PARAM(W_PDF_BAD_VIEW, "Couldn't read the initial document view"),
102 PARAM(W_PDF_BAD_WMODE, "A Font or CMap has a WMode which is neither 0 (horizontal) nor 1 (vertical)"),
103 PARAM(W_PDF_BAD_OCDICT, "Optional content (/OC) did not reference a dictionary object"),
104 PARAM(W_PDF_DO_OC_FAILED, "Failed to write optional content for an image or form, layers will be incorrect."),
105 PARAM(W_PDF_BAD_CONFIG, "A configuration or command line parameter was invalid or incorrect."),
106 PARAM(W_PDF_INVALID_TTF_CMAP, "A TrueType font contains invalid or no cmap table(s)"),
107 PARAM(W_PDF_LIMITCHECK_TYPE0_CMAP, "A CMap has too many code maps."),
108 PARAM(W_PDF_INHERITED_STREAM_RESOURCE, "stream inherited a resource"),
109 PARAM(W_PDF_BAD_COLLECTION, "Failed to read Collection information."),
110 PARAM(W_PDF_BAD_OUTPUTINTENT_INDEX, "UsePDFX3Profile specified invalid index for OutputIntents"),
111 PARAM(W_PDF_VMERROR_BUILTIN_FONT, "VM Error for built-in font."),
112 PARAM(W_PDF_ERROR_IN_MATTE, "Setting up a Matte for an image returned an error"),
113 PARAM(W_PDF_CACHE_FAIL, "Failed to add a cache entry for an object"),
114 #undef PARAM