How to render PDF pages using PDFium on Android?

5 Sep 20251 minute to read

The Syncfusion® Flutter PDF Viewer allows users to render PDF pages using the PDFium library on Android devices running API levels below 35 through an optional package, syncfusion_pdfviewer_android.

This optional package significantly enhances the loading performance of large password-protected PDF files on Android devices running API levels below 35, with performance improvements of up to approximately 13 times faster.

To render PDF pages using PDFium on Android devices running API levels below 35, add the syncfusion_pdfviewer_android dependency in the pubspec.yaml file.

  • DART
  • dependencies:
    
    syncfusion_flutter_pdfviewer: ^xx.x.xx 
    syncfusion_pdfviewer_android: ^xx.x.xx

    NOTE

    Here, xx.x.xx denotes the current version of the Syncfusion® Flutter PDF Viewer package. Please ensure that the syncfusion_pdfviewer_android package uses the same version as syncfusion_flutter_pdfviewer.

    NOTE

    The syncfusion_pdfviewer_android package is supported from version 29.2.10 onwards.

    NOTE

    PdfRenderer will be used to render PDF pages on Android devices running API level 35 and above, even if the syncfusion_pdfviewer_android dependency is included.