Skip to content

Commit 7de6cd5

Browse files
authored
Merge pull request #1239 from syncfusion-content/FLUT-962885-pdfviewer
FLUT-962885: Add how to for syncfusion_pdfviewer_android
2 parents bf8d869 + 0bd973d commit 7de6cd5

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
layout: post
3+
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 devices running API levels below 35 with the SfPdfViewer widget.
5+
platform: flutter
6+
control: SfPdfViewer
7+
documentation: ug
8+
keywords: flutter pdf viewer, flutter view pdf, pdf viewer in flutter, flutter open pdf, flutter pdf view
9+
---
10+
11+
# How to render PDF pages using PDFium on Android?
12+
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).
14+
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+
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.
18+
19+
{% highlight dart %}
20+
21+
dependencies:
22+
23+
syncfusion_flutter_pdfviewer: ^xx.x.xx
24+
syncfusion_pdfviewer_android: ^xx.x.xx
25+
26+
{% endhighlight %}
27+
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.
31+
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.

flutter-toc.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,7 @@
560560
<li><a href="/Flutter/pdf-viewer/How-to/Add-SignaturePad-signatures-to-Syncfusion-Flutter-PdfViewer">Add SignaturePad signatures to Syncfusion Flutter PdfViewer</a></li>
561561
<li><a href="/Flutter/pdf-viewer/How-to/Resolve-Library-not-loaded-rpath-libswiftCore-dylib-error">Resolve Library not loaded: @rpath/libswiftCore.dylib error</a></li>
562562
<li><a href="/Flutter/pdf-viewer/How-to/custom-widget-on-flutterflow">Custom Widget on FlutterFlow</a></li>
563+
<li><a href="/Flutter/pdf-viewer/How-to/Render-pages-using-pdfium-android.md">Render PDF Pages using PDFium in Android</a></li>
563564
</ul>
564565
</li>
565566
</ul>

0 commit comments

Comments
 (0)