PdfiumException class

A general-purpose exception thrown when an unexpected PDFium native failure occurs.

PdfiumException is thrown when a PDFium FFI call returns a failure that cannot be attributed to a known, recoverable condition (such as an invalid document or a missing password). For example, if FPDFBitmap_Create returns null unexpectedly — indicating a native allocation failure — a PdfiumException is thrown with a descriptive message.

Known, recoverable conditions (password-required, corrupt document) use PdfError and PdfExtractionException instead.

Example

try {
  final image = await doc.renderPage(0, 800, 600);
} on PdfiumException catch (e) {
  print('PDFium native failure: ${e.message}');
}
Implemented types

Constructors

PdfiumException(String message)
Creates a PdfiumException with the given message.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
A human-readable description of why the PDFium call failed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited