firstPage method

void firstPage()

Navigates to the first page of a PDF document.

Using this method, the SfPdfViewer navigates to the first page of a PDF document. If the current page displayed is already the first page, then nothing happens.

Returns null.

This example demonstrates how to navigate to the first and last page.

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'),
          actions: <Widget>[
                icon: Icon(
                   color: Colors.white,
                onPressed: () {
       body: SfPdfViewer.asset(
         controller: _pdfViewerController,


void firstPage() {
  _pageNavigator = Pagination(Navigation.firstPage);
  _notifyPropertyChangedListeners(property: 'pageNavigate');