PdfDiagnosticKind Enum

The problems the reader finds in a file and repairs (PdfDiagnostic.Kind).

public enum PdfDiagnosticKind

Fields

NameValueDescription
HeaderNotAtStart0Bytes come before the header (%PDF-, ISO 32000-2, 7.5.2): the offsets of the file may count from the header.
MissingHeader1The file has no header: it is read anyway.
InvalidStartXref2The startxref keyword at the end of the file is missing, or its offset is not valid (7.5.5): the cross-reference information is rebuilt.
DamagedCrossReferenceSection3A cross-reference section cannot be read (7.5.4, 7.5.8): its table or stream is damaged.
BrokenCrossReferenceChain4The /Prev offset of a cross-reference section does not lead to a section (7.5.6): the older sections are not read, and the objects they define are found by scanning the file.
ShiftedCrossReferenceTable5A cross-reference table starts at object 1 with the entry of object 0: its entries are shifted to start at 0.
MissingCatalog6The trailer has no catalog (/Root, 7.5.5): the cross-reference information is rebuilt.
CrossReferenceRebuilt7The cross-reference information was rebuilt by scanning the file for objects (PdfDocument.IsRepaired).
CatalogFoundByScan8The file has no trailer with a catalog: the last catalog of the file is the root.
WrongObjectOffset9An object is not at the offset its cross-reference entry gives: it was found at another offset.
MissingObject10An object cannot be found: references to it are the null object (7.3.10).
GenerationMismatch11A reference has a generation that is not the one of the object; the object is used, since the file defines one generation only.
WrongObjectStreamIndex12An object is not at the index of the object stream its cross-reference entry gives (7.5.7): it was found at another index.
UndecodableObjectStream13An object stream cannot be decoded (7.5.7): the objects it contains are missing.
MissingEndObj14An object has no endobj keyword (7.3.10).
MissingEndStream15A stream has no endstream keyword, but its /Length is right (7.3.8.1).
InvalidStreamLength16The /Length of a stream is missing or wrong: the data ends at the endstream keyword (7.3.8.1).
UnknownKeyword17A keyword is where an object is expected: it is read as the null object.
UnclosedContainer18An array or a dictionary is not closed: it ends where the object ends.
InvalidDictionaryKey19A dictionary has a key that is not a name (7.3.7): the entry is skipped.
InvalidPageTreeNode20A node of the page tree is not valid (7.7.3): a child that is not a dictionary, a node reached twice, a page that is not an indirect object, or a tree too deep. The node is skipped.
DamagedStreamData21The data of a Flate stream is damaged (7.4.4): the bytes decoded before the damage are kept.
UndecodableStream22A stream cannot be decoded: its filters are not valid, not supported, or its data exceeds the limits (PdfDocument.ValidateStructure reports it).