PdfDocumentLoader constructor

PdfDocumentLoader({
  1. Key? key,
  2. required FutureOr<PdfDocument> doc,
  3. PdfDocumentBuilder? documentBuilder,
  4. int? pageNumber,
  5. PdfPageBuilder? pageBuilder,
  6. dynamic onError(
    1. dynamic
    )?,
})

Use one of PdfDocumentLoader.openFile, PdfDocumentLoader.openAsset, or PdfDocumentLoader.openData in normal case. If you already have PdfDocument, you can use the method.

Implementation

PdfDocumentLoader({
  Key? key,
  required this.doc,
  this.documentBuilder,
  this.pageNumber,
  this.pageBuilder,
  this.onError,
}) : super(key: key);