pub enum FpdfError {
Show 67 variants
InvalidPageStart,
PageNotFound,
NotImplemented,
FontNotFound,
FontNotSet,
FontNotSupported,
FontNotTrueType,
FontParsingError,
FontKeyAlreadyExists,
CannotReadMetadata,
FileNotCreated,
FileNotWritten,
FileNotRead,
FileNotFound,
ClipProcedureNotEnded,
TransformationProcedureNotEnded,
UnsupportedFontType,
UnknownMetricDataFormat(i16),
InvalidHorizontalMetric,
UnknownSymbolDataFormat(u16),
IllegalFormat(u16),
FormatNotBinary(u16),
CopyrightRestrictions,
MissingCmapForUnicode,
UnknownLocaTableFormat,
TableNotFound,
SpotColorNameAlreadyTaken,
WriteError,
ReadError,
IndexNotFound,
ImageHasNoExtension,
UnsupportedImageType,
JpegDecodeError,
GifDecodeError,
GifNoFrameError,
PngEncodeError,
PngDecodeError,
PngInvalidSize,
NotPngBuffer,
IncorrectPngBuffer,
UnknownPngColorSpace,
UnknownPngCompressionMethod,
UnknownPngFilterMethod,
PngInterlacingNotSupported,
PngMissingPalette,
TransformationContextNotActive,
TransformationContextEndOutOfSequence,
SkewAngleOutsideRange,
ScaleFactorZero,
InvalidBoxType,
ClipEndOutOfSequence,
IncorrectZoomDisplayMode,
TemplateWithoutPage,
SpotColorNotRegistered,
InvalidTableName,
TableDescriptionNotFound,
UnknownPageSize,
ValueOutOfRange,
UnexpectedPathCommand,
CharacterOutsideSupportedRange,
SystemTimeError,
SscanfError,
AttachmentHasId,
JsonParsing,
ParsingError,
RegexError,
FontLoaderError,
}Expand description
Any FPDF error that can happen during runtime execution.
§Panics
You will rarely work with the errors directly. Whenever a function call returns an error, it will panic.
Variants§
InvalidPageStart
PageNotFound
NotImplemented
FontNotFound
FontNotSet
FontNotSupported
FontNotTrueType
FontParsingError
FontKeyAlreadyExists
CannotReadMetadata
FileNotCreated
FileNotWritten
FileNotRead
FileNotFound
ClipProcedureNotEnded
TransformationProcedureNotEnded
UnsupportedFontType
UnknownMetricDataFormat(i16)
InvalidHorizontalMetric
UnknownSymbolDataFormat(u16)
IllegalFormat(u16)
FormatNotBinary(u16)
CopyrightRestrictions
MissingCmapForUnicode
UnknownLocaTableFormat
TableNotFound
SpotColorNameAlreadyTaken
WriteError
ReadError
IndexNotFound
ImageHasNoExtension
UnsupportedImageType
JpegDecodeError
GifDecodeError
GifNoFrameError
PngEncodeError
PngDecodeError
PngInvalidSize
NotPngBuffer
IncorrectPngBuffer
UnknownPngColorSpace
UnknownPngCompressionMethod
UnknownPngFilterMethod
PngInterlacingNotSupported
PngMissingPalette
TransformationContextNotActive
TransformationContextEndOutOfSequence
SkewAngleOutsideRange
ScaleFactorZero
InvalidBoxType
ClipEndOutOfSequence
IncorrectZoomDisplayMode
TemplateWithoutPage
SpotColorNotRegistered
InvalidTableName
TableDescriptionNotFound
UnknownPageSize
ValueOutOfRange
UnexpectedPathCommand
CharacterOutsideSupportedRange
SystemTimeError
SscanfError
AttachmentHasId
JsonParsing
ParsingError
RegexError
FontLoaderError
Trait Implementations§
Source§impl Error for FpdfError
impl Error for FpdfError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
Source§impl Ord for FpdfError
impl Ord for FpdfError
Source§impl PartialOrd for FpdfError
impl PartialOrd for FpdfError
impl Copy for FpdfError
impl Eq for FpdfError
impl StructuralPartialEq for FpdfError
Auto Trait Implementations§
impl Freeze for FpdfError
impl RefUnwindSafe for FpdfError
impl Send for FpdfError
impl Sync for FpdfError
impl Unpin for FpdfError
impl UnwindSafe for FpdfError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more