Exceptions
- exception pikepdf.exceptions.PdfError
General pikepdf-specific exception.
- exception pikepdf.exceptions.PasswordError
Exception thrown when the supplied password is incorrect.
- exception pikepdf.exceptions.ForeignObjectError
When a complex object is copied into a foreign PDF without proper methods.
Use
Pdf.copy_foreign()
.
- exception pikepdf.exceptions.OutlineStructureError
Indicates an error in the outline data structure.
- exception pikepdf.exceptions.UnsupportedImageTypeError
This image is formatted in a way pikepdf does not supported.
- exception pikepdf.exceptions.HifiPrintImageNotTranscodableError
Image contains high fidelity printing information and cannot be extracted.
- exception pikepdf.exceptions.InvalidPdfImageError
This image is not valid according to the PDF 1.7 specification.
- exception pikepdf.exceptions.DataDecodingError
Exception thrown when a stream object in a PDF cannot be decoded.
- exception pikepdf.exceptions.DeletedObjectError
When a required object is accessed after deletion.
Thrown when accessing a
Object
that relies on aPdf
that was deleted using the Pythondelete
statement or collected by the Python garbage collector. To resolve this error, you must retain a reference to the Pdf for the whole time you may be accessing it.Added in version 7.0.
- exception pikepdf.exceptions.DependencyError
A third party dependency is needed to extract streams of this type.
- exception pikepdf.exceptions.PdfParsingError(message=None, line=None)
Error when parsing a PDF content stream.