The SfPdfViewer.memory creates a widget that displays the PDF document obtained from the Uint8List
. The following code example explains the same.
@override
Widget build(BuildContext context) {
return Scaffold(
body: SfPdfViewer.memory(
bytes));
}
https://help.syncfusion.com/flutter/system-requirements
- To clone the sample repository locally, open the command prompt in the desired location and execute the following command.
git clone https://github.com/SyncfusionExamples/load-a-pdf-from-memory-or-bytes-in-flutter-pdf-viewer.git
- Navigate to the project directory:
cd load-a-pdf-from-memory-or-bytes-in-flutter-pdf-viewer
To learn more about SfPdfViewer widget and its features, refer to this documentation