You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Rendering PDF pages using PDFium on Android| Syncfusion
4
-
description: You can learn all about rendering PDF pages using the PDFium library on Android with the Syncfusion® Flutter PDF Viewer (SfPdfViewer) widget.
4
+
description: You can learn all about rendering PDF pages using the PDFium library on Android devices running API levels below 35 with the SfPdfViewer widget.
5
5
platform: flutter
6
6
control: SfPdfViewer
7
7
documentation: ug
@@ -10,13 +10,11 @@ keywords: flutter pdf viewer, flutter view pdf, pdf viewer in flutter, flutter o
10
10
11
11
# How to render PDF pages using PDFium on Android?
12
12
13
-
The Syncfusion<sup>®</sup> Flutter PDF Viewer allows users to render PDF pages using the PDFium library on Android through an optional package, [syncfusion_pdfviewer_android](https://pub.dev/packages/syncfusion_pdfviewer_android). This enables loading password-protected documents and rendering PDF pages with better performance on Android devices running API levels below 35. By default, the PDF Viewer uses the [PdfRenderer](https://developer.android.com/reference/android/graphics/pdf/PdfRenderer) to render PDF pages on the Android platform.
13
+
The Syncfusion<sup>®</sup> 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](https://pub.dev/packages/syncfusion_pdfviewer_android).
14
14
15
-
However, the `PdfRenderer` does not support loading password-protected documents on Android devices running API levels below 35. To load password-protected documents on Android, we decrypt the PDF document using the `syncfusion_flutter_pdf` library and employ the decrypted bytes to load the PDF document.
15
+
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.
16
16
17
-
To improve the performance of loading password-protected PDF documents on API levels below 35, we can use the PDFium library to load and render the PDF documents.
18
-
19
-
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.
17
+
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.
N> Here **xx.x.xx** denotes the current version of the [Syncfusion<sup>®</sup> Flutter PDF Viewer](https://pub.dev/packages/syncfusion_flutter_pdfviewer/versions) package. Please use the same version as the `syncfusion_flutter_pdfviewer` package.
28
+
N> Here, **xx.x.xx** denotes the current version of the [Syncfusion<sup>®</sup> Flutter PDF Viewer](https://pub.dev/packages/syncfusion_flutter_pdfviewer/versions) package. Please ensure that the `syncfusion_pdfviewer_android` package uses the same version as `syncfusion_flutter_pdfviewer`.
29
+
30
+
N> The `syncfusion_pdfviewer_android` package is supported from version 29.2.10 onwards.
31
31
32
-
N> PdfRenderer will be used for rendering PDF pages on Android devices running API levels 35 and above, even if the `syncfusion_pdfviewer_android` dependency is added.
32
+
N> `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.
0 commit comments