PdfViewerController.fromBytes constructor
PdfViewerController.fromBytes(
- Uint8List bytes
Create a controller from raw PDF bytes.
Parses the bytes into a PdfDocument for metadata and page info, while keeping the raw bytes for rendering.
Implementation
PdfViewerController.fromBytes(Uint8List bytes)
: document = PdfDocument.fromBytes(bytes) {
pdfBytes = bytes;
}