Enum pdfium_render::error::PdfiumError
source · [−]pub enum PdfiumError {
Show 30 variants
LoadLibraryError(Error),
UnrecognizedPath,
PageIndexOutOfBounds,
UnknownBitmapFormat,
UnknownBitmapRotation,
UnknownFormType,
UnknownFormFieldType,
UnknownActionType,
PageObjectIndexOutOfBounds,
PageObjectNotAttachedToPage,
PageObjectAlreadyAttachedToDifferentPage,
PageAnnotationIndexOutOfBounds,
PageFlattenFailure,
UnknownPdfPageObjectType,
UnknownPdfPageTextRenderMode,
UnknownPdfPagePathFillMode,
UnknownPdfAnnotationType,
UnknownPdfSecurityHandlerRevision,
UnsupportedPdfPageObjectType,
TextSegmentIndexOutOfBounds,
CharIndexOutOfBounds,
NoCharsInPageObject,
DataBufferLengthMismatch,
EmptyPageObjectGroup,
PdfiumFunctionReturnValueIndicatedFailure,
UnableToConvertPdfiumColorValueToRustu8(TryFromIntError),
WebSysWindowObjectNotAvailable,
ImageError,
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
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.
WebSysWindowObjectNotAvailable
The browser’s built-in Window object could not be retrieved.
ImageError
An error occurred during an image processing operation.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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