Enum pdfium_render::error::PdfiumError
source · [−]pub enum PdfiumError {
Show 36 variants
LoadLibraryError(Error),
UnrecognizedPath,
PageIndexOutOfBounds,
UnknownBitmapFormat,
UnknownBitmapRotation,
UnknownFormType,
UnknownFormFieldType,
UnknownActionType,
PageObjectIndexOutOfBounds,
PageObjectNotAttachedToPage,
PageObjectAlreadyAttachedToDifferentPage,
PageAnnotationIndexOutOfBounds,
PageFlattenFailure,
UnknownPdfPageObjectType,
UnknownPdfPageTextRenderMode,
UnknownPdfPagePathFillMode,
UnknownPdfAnnotationType,
UnknownPdfSecurityHandlerRevision,
UnsupportedPdfPageObjectType,
TextSegmentIndexOutOfBounds,
CharIndexOutOfBounds,
NoCharsInPageObject,
NoCharsInAnnotation,
NoCharsInRect,
ImageObjectFilterIndexOutOfBounds,
ImageObjectFilterIndexInBoundsButFilterUndefined,
UnknownPdfColorSpace,
InvalidTransformationMatrix,
DataBufferLengthMismatch,
EmptyPageObjectGroup,
PdfiumFunctionReturnValueIndicatedFailure,
UnableToConvertPdfiumColorValueToRustu8(TryFromIntError),
ImageError,
ImageSizeOutOfBounds,
IoError(Error),
PdfiumLibraryInternalError(PdfiumInternalError),
}Variants
LoadLibraryError(Error)
The external Pdfium library could not be loaded.
UnrecognizedPath
PageIndexOutOfBounds
UnknownBitmapFormat
UnknownBitmapRotation
UnknownFormType
UnknownFormFieldType
UnknownActionType
PageObjectIndexOutOfBounds
PageObjectNotAttachedToPage
PageObjectAlreadyAttachedToDifferentPage
PageAnnotationIndexOutOfBounds
PageFlattenFailure
UnknownPdfPageObjectType
UnknownPdfPageTextRenderMode
UnknownPdfPagePathFillMode
UnknownPdfAnnotationType
UnknownPdfSecurityHandlerRevision
UnsupportedPdfPageObjectType
TextSegmentIndexOutOfBounds
CharIndexOutOfBounds
NoCharsInPageObject
NoCharsInAnnotation
NoCharsInRect
ImageObjectFilterIndexOutOfBounds
ImageObjectFilterIndexInBoundsButFilterUndefined
UnknownPdfColorSpace
InvalidTransformationMatrix
DataBufferLengthMismatch
Two data buffers are expected to have the same size, but they do not.
EmptyPageObjectGroup
The setting cannot be returned because this PdfPageGroupObject is empty.
PdfiumFunctionReturnValueIndicatedFailure
A call to a internal Pdfium FPDF_* function returned a value indicating failure.
For Pdfium functions that return enumerations, this means the function returned a value of -1 rather than a valid enumeration constant.
For Pdfium functions that return C-style boolean integers, this means that the function
returned a value other than PdfiumLibraryBindings::TRUE.
UnableToConvertPdfiumColorValueToRustu8(TryFromIntError)
A call to a Pdfium function that returns a standard 8-bit color component value
(for example, FPDFPageObj_GetStrokeColor() and FPDFPageObj_GetStrokeColor())
successfully returned a value, but the value could not be converted from a c_int
to a standard Rust u8.
ImageError
An error occurred during an image processing operation.
ImageSizeOutOfBounds
Dimensions of Image::Image are specified in u32, but bitmaps in Pdfium are sized in
c_int (i32), meaning that an Image::Image can have dimensions that overflow
the maximum size of a Pdfium bitmap. As a compromise, Image dimensions in pdfium-render
are limited to u16.
This error indicates that an Image::Image had a width or height larger than the maximum
u16 size allowed by pdfium-render.
IoError(Error)
An I/O error occurred during a Pdfium file operation.
PdfiumLibraryInternalError(PdfiumInternalError)
A wrapped internal library error from Pdfium’s FPDF_ERR_* constant values.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for PdfiumError
impl Send for PdfiumError
impl Sync for PdfiumError
impl Unpin for PdfiumError
impl !UnwindSafe for PdfiumError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more