PdfDocumentLoader.openData constructor

PdfDocumentLoader.openData(
  1. Uint8List data, {
  2. Key? key,
  3. PdfDocumentBuilder? documentBuilder,
  4. int? pageNumber,
  5. PdfPageBuilder? pageBuilder,
  6. dynamic onError(
    1. dynamic
    )?,
})

Load PDF document from PDF binary data.

For additional parameters, see PdfDocumentLoader.

Implementation

factory PdfDocumentLoader.openData(
  Uint8List data, {
  Key? key,
  PdfDocumentBuilder? documentBuilder,
  int? pageNumber,
  PdfPageBuilder? pageBuilder,
  Function(dynamic)? onError,
}) =>
    PdfDocumentLoader(
      key: key,
      doc: PdfDocument.openData(data),
      documentBuilder: documentBuilder,
      pageNumber: pageNumber,
      pageBuilder: pageBuilder,
      onError: onError,
    );