PdfDiagnosticKind Enum
The problems the reader finds in a file and repairs (PdfDiagnostic.Kind).
public enum PdfDiagnosticKindFields
| Name | Value | Description |
|---|---|---|
HeaderNotAtStart | 0 | Bytes come before the header (%PDF-, ISO 32000-2, 7.5.2): the offsets of the file may count from the header. |
MissingHeader | 1 | The file has no header: it is read anyway. |
InvalidStartXref | 2 | The 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. |
DamagedCrossReferenceSection | 3 | A cross-reference section cannot be read (7.5.4, 7.5.8): its table or stream is damaged. |
BrokenCrossReferenceChain | 4 | The /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. |
ShiftedCrossReferenceTable | 5 | A cross-reference table starts at object 1 with the entry of object 0: its entries are shifted to start at 0. |
MissingCatalog | 6 | The trailer has no catalog (/Root, 7.5.5): the cross-reference information is rebuilt. |
CrossReferenceRebuilt | 7 | The cross-reference information was rebuilt by scanning the file for objects (PdfDocument.IsRepaired). |
CatalogFoundByScan | 8 | The file has no trailer with a catalog: the last catalog of the file is the root. |
WrongObjectOffset | 9 | An object is not at the offset its cross-reference entry gives: it was found at another offset. |
MissingObject | 10 | An object cannot be found: references to it are the null object (7.3.10). |
GenerationMismatch | 11 | A reference has a generation that is not the one of the object; the object is used, since the file defines one generation only. |
WrongObjectStreamIndex | 12 | An object is not at the index of the object stream its cross-reference entry gives (7.5.7): it was found at another index. |
UndecodableObjectStream | 13 | An object stream cannot be decoded (7.5.7): the objects it contains are missing. |
MissingEndObj | 14 | An object has no endobj keyword (7.3.10). |
MissingEndStream | 15 | A stream has no endstream keyword, but its /Length is right (7.3.8.1). |
InvalidStreamLength | 16 | The /Length of a stream is missing or wrong: the data ends at the endstream keyword (7.3.8.1). |
UnknownKeyword | 17 | A keyword is where an object is expected: it is read as the null object. |
UnclosedContainer | 18 | An array or a dictionary is not closed: it ends where the object ends. |
InvalidDictionaryKey | 19 | A dictionary has a key that is not a name (7.3.7): the entry is skipped. |
InvalidPageTreeNode | 20 | A 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. |
DamagedStreamData | 21 | The data of a Flate stream is damaged (7.4.4): the bytes decoded before the damage are kept. |
UndecodableStream | 22 | A stream cannot be decoded: its filters are not valid, not supported, or its data exceeds the limits (PdfDocument.ValidateStructure reports it). |