PdfDocumentLoader.openFile constructor
PdfDocumentLoader.openFile(
- String filePath, {
- Key? key,
- PdfDocumentBuilder? documentBuilder,
- int? pageNumber,
- PdfPageBuilder? pageBuilder,
- dynamic onError(
- dynamic
Load PDF document from file.
For additional parameters, see PdfDocumentLoader.
Implementation
factory PdfDocumentLoader.openFile(
String filePath, {
Key? key,
PdfDocumentBuilder? documentBuilder,
int? pageNumber,
PdfPageBuilder? pageBuilder,
Function(dynamic)? onError,
}) =>
PdfDocumentLoader(
key: key,
doc: PdfDocument.openFile(filePath),
documentBuilder: documentBuilder,
pageNumber: pageNumber,
pageBuilder: pageBuilder,
onError: onError,
);