onDocumentLoadFailed property

PdfDocumentLoadFailedCallback? onDocumentLoadFailed
final

Called when the document loading fails in SfPdfViewer.

Called in the following scenarios where the load failure occurs

  1. When any corrupted PDF is loaded.
  2. When any password-protected document is loaded with invalid or empty password.
  3. When any improper input source value like wrong URL or file path is given.
  4. When any non PDF document is loaded.

The error and description values in the PdfDocumentLoadFailedDetails will be updated when the document loading fails.

See also: PdfDocumentLoadFailedDetails.

Implementation

final PdfDocumentLoadFailedCallback? onDocumentLoadFailed;