Enum pdfium_render::error::PdfiumInternalError
source · pub enum PdfiumInternalError {
FileError,
FormatError,
PasswordError,
SecurityError,
PageError,
Unknown,
}Expand description
A wrapped internal library error from Pdfium’s FPDF_ERR_* constant values.
Pdfium only provides detailed internal error information for document loading functions. All other functions in the Pdfium API return a value indicating success or failure, but otherwise detailed error information for failed API calls is not available. In these cases, an error value of PdfiumInternalError::Unknown will be returned.
Variants§
FileError
The document could not be loaded due to a file system error.
FormatError
The document could not be loaded due to a format parsing error.
PasswordError
The document could not be loaded because the wrong password was supplied.
SecurityError
The document could not be loaded because of the document’s security settings.
PageError
The page could not be loaded due to an internal error.
Unknown
A generic error value returned in all other unhandled situations.