initialScrollOffset property

Offset initialScrollOffset

Represents the initial scroll offset position to be displayed when the SfPdfViewer widget is loaded.

Defaults to Offset(0, 0)

This example demonstrates how to set the initial scroll offset position to the SfPdfViewer.

class MyAppState extends State<MyApp>{

late PdfViewerController _pdfViewerController;

 void initState(){
   _pdfViewerController = PdfViewerController();

 Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       appBar: AppBar(
          title: Text('Syncfusion Flutter PdfViewer'),
       body: SfPdfViewer.asset(
         controller: _pdfViewerController,
         initialScrollOffset: Offset(100.0, 10.0),


final Offset initialScrollOffset;