PdfViewerError

Why a PdfViewer / KmpPdfViewer could not open a document, surfaced to the host via the onDocumentError callback and used internally to pick the inline error message instead of crashing.

Distinguishing a password problem from a generic decode failure lets the host prompt for (or correct) a password rather than just reporting "this file is broken".

Entries

Link copied to clipboard

The document is encrypted and no password (or the wrong password) was supplied. On Desktop the right password reopens it; on Android, where android.graphics.pdf.PdfRenderer cannot open encrypted files at all, this is terminal regardless of the password.

Link copied to clipboard

The bytes are not a PDF this platform can render — empty, truncated, corrupt, or in a format the platform decoder rejects.

Link copied to clipboard

Loading the bytes failed before decoding even started (network error, missing file, unreadable content URI, etc.).

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.