pub enum Error {
Show 22 variants
BracketLimit,
ContentDecode,
Decryption(DecryptionError),
DictKey,
Header,
Invalid(String),
IO(Error),
NoOutlines,
ObjectIdMismatch,
ObjectNotFound,
Offset(usize),
PageNumberNotFound(u32),
Parse {
offset: usize,
},
ReferenceCycle,
ReferenceLimit,
StringDecode,
Syntax(String),
ToUnicodeCMap(UnicodeCMapError),
Trailer,
Type,
UTF8,
Xref(XrefError),
}
Variants§
BracketLimit
Brackets limit reached. To many brackets nested.
ContentDecode
Could not decode content.
Decryption(DecryptionError)
Error when decrypting the contents of the file
DictKey
Dictionary key was not found.
Header
Invalid file header
Invalid(String)
Invalid command.
IO(Error)
IO error
NoOutlines
PDF document has no Outlines.
ObjectIdMismatch
Found Object ID does not match Expected Object ID.
ObjectNotFound
The Object ID was not found.
Offset(usize)
Offset in file is invalid.
PageNumberNotFound(u32)
Page number was not found in document.
Parse
Invalid object while parsing at offset.
ReferenceCycle
Dereferencing object failed due to a reference cycle.
ReferenceLimit
Dereferencing object reached the limit. This might indicate a reference loop.
StringDecode
Decoding byte vector failed.
Syntax(String)
Syntax error while parsing the file.
ToUnicodeCMap(UnicodeCMapError)
Could not parse ToUnicodeCMap.
Trailer
The file trailer was invalid.
Type
The object does not have the expected type.
UTF8
Decoding byte vector to UTF8 String failed.
Xref(XrefError)
Error while parsing cross reference table.