pageLayoutMode property

PdfPageLayoutMode pageLayoutMode
final

The layout mode in which the PDF page will be rendered.

Defaults to PdfPageLayoutMode.continuous

This example demonstrates how to set the page layout mode to the SfPdfViewer.

class MyAppState extends State<MyApp>{

late PdfViewerController _pdfViewerController;

 @override
 void initState(){
   _pdfViewerController = PdfViewerController();
   super.initState();
 }

 @override
 Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       appBar: AppBar(
          title: Text('Syncfusion Flutter PdfViewer'),
       ),
       body: SfPdfViewer.asset(
         'assets/flutter-succinctly.pdf',
         controller: _pdfViewerController,
          pageLayoutMode: PdfPageLayoutMode.continuous,
       ),
     ),
   );
 }
}

Implementation

final PdfPageLayoutMode pageLayoutMode;