PdfViewer.openData constructor

PdfViewer.openData(
  1. Uint8List data, {
  2. Key? key,
  3. PdfViewerController? viewerController,
  4. PdfViewerParams? params,
  5. OnError? onError,
})

Open PDF data on byte array.

Implementation

factory PdfViewer.openData(
  Uint8List data, {
  Key? key,
  PdfViewerController? viewerController,
  PdfViewerParams? params,
  OnError? onError,
}) =>
    PdfViewer(
      key: key,
      doc: PdfDocument.openData(data),
      viewerController: viewerController,
      params: params,
      onError: onError,
    );