Skip to content

Commit 1b8a4a0

Browse files
FLUT-962885: Add how to for syncfusion_pdfviewer_android
1 parent d6c579a commit 1b8a4a0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: post
33
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.
55
platform: flutter
66
control: SfPdfViewer
77
documentation: ug
@@ -10,13 +10,11 @@ keywords: flutter pdf viewer, flutter view pdf, pdf viewer in flutter, flutter o
1010

1111
# How to render PDF pages using PDFium on Android?
1212

13-
The Syncfusion<sup>&reg;</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>&reg;</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).
1414

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.
1616

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.
2018

2119
{% highlight dart %}
2220

@@ -27,6 +25,8 @@ syncfusion_pdfviewer_android: ^xx.x.xx
2725

2826
{% endhighlight %}
2927

30-
N> Here **xx.x.xx** denotes the current version of the [Syncfusion<sup>&reg;</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>&reg;</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.
3131

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

Comments
 (0)