PdfDocumentLoader constructor
PdfDocumentLoader({
- Key? key,
- required FutureOr<
PdfDocument> doc, - PdfDocumentBuilder? documentBuilder,
- int? pageNumber,
- PdfPageBuilder? pageBuilder,
- dynamic onError(
- 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);