PdfLoadedDocument.fromBytes constructor

PdfLoadedDocument.fromBytes(
  1. Uint8List bytes
)

Parses a PDF from raw bytes.

Implementation

factory PdfLoadedDocument.fromBytes(Uint8List bytes) {
  final document = PdfDocument.parseFromBytes(bytes);
  return PdfLoadedDocument._(document, Uint8List.fromList(bytes));
}