• Stars
    star
    107
  • Rank 323,587 (Top 7 %)
  • Language
    Kotlin
  • License
    MIT License
  • Created over 6 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A native PDF viewer for flutter.

Sponsor pub package

flutter pdf viewer

A native Pdf viewer for flutter, built on AndroidPdfViewer.

P.S. Android Only!

Features

  • Night Mode
  • Scroll Bar
  • Horizontal swipe
  • Pinch to zoom
  • Show inline Videos in Pdf
  • Immersive mode
  • Page by page analytics

Security

  • Features fast native speed XOR - decryption of files.
  • Password protected pdf.
  • Display PDF from bytes without ever touching the disk!

Drawbacks

  • Inline Pdf Viewing is not supported. ( A new activity is opened ). See #1.

    A proof of concept for inline PDFs is available at the inline branch.

Install

To use this plugin, follow the installation instructions.

License: MIT

NOTE: You must add these lines at android/app/build.gradle.

(This is required by ExoPlayer, which is used to play videos).

android {
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

Example

$ git clone https://github.com/pycampers/flutter_pdf_viewer.git
$ cd flutter_pdf_viewer/example
$ flutter run

Preview

Generating 64-bit APKs

The Underlying native library tends to blow up the APK size. So, you can build a separate APK for each CPU architecture.

This will also fix an issue with flutter tooling, where 64-bit ARM devices don't work.

Add the following section in android/app/build.gradle -

android {
    defaultConfig {
        ndk {
            abiFilters "<arch>"
        }
    }
}
  • For 32-bit APK, replace <arch> with armeabi-v7a, and run $ flutter build apk --release as usual.

  • For 64-bit APK, replace <arch> with arm64-v8a, and run $ flutter build apk --release --target-platform=android-arm64.

Now you have 2 Apks, which you will need to publish separately to the Play Store. For that you need to tweak the android:versionCode property to have slightly different values for each build.

The exact "Rules for multiple APKs" can be found here.

Thanks


πŸπŸ•οΈ

More Repositories

1

ampy

MicroPython Tool - Utility to interact with a MicroPython board over a serial connection.
Python
716
star
2

zproc

Process on steroids
Python
112
star
3

thinkfan-control-gui

a small gui app for linux to control fan speed and monitor temps on a thinkpad
Python
79
star
4

flutter_cognito_plugin

An AWS cognito plugin for flutter
Dart
60
star
5

flutter-rx-ble

A Flutter BLE plugin, based on RxAndroidBle and RxBluetoothKit.
Dart
35
star
6

oscilloscope

An oscilloscope for python that just worksβ„’
Python
25
star
7

flutter-wifi-connect

Dead simple WiFi connect functionality for flutter.
Kotlin
23
star
8

eopkg3p

CLI and python API for the Solus 3rd party packages
Python
22
star
9

react-pages

A zero-fuss way to create non-node apps with react.
JavaScript
18
star
10

pymiwifi

A python API to the Xiaomi Mi WiFi Router web interface
Python
15
star
11

flutter-plugin-scaffold

A scaffold for writing flutter plugins
Kotlin
15
star
12

flutter-pdfium

dart:ffi wrapper for Google's Pdfium library
Dart
11
star
13

dockapt

A magical fusion of docker and APT
Python
6
star
14

muro

A WIFI enabled Music Remote for your desktop.
Python
6
star
15

flutter-keyboard-plugin

Flutter plugin to detect keyboard events.
Dart
5
star
16

lattu

Straightforward way to control BLE controlled smart bulbs using python.
Python
4
star
17

super_logging

The usual dart logging module with superpowers!
Dart
4
star
18

django-hideshow

Dynamically hide/show Django admin form fields using only HTML attributes. No javascript required. ℒ️
Python
4
star
19

dialmap

Software controlled dials done right.
Python
3
star
20

dart-paytm-api

Paytm internal APIs for dart
Dart
3
star
21

yt-tricks

Chrome extension containing YouTube Tricks!
JavaScript
2
star
22

minst-flutter-app

Dart
2
star
23

firmware-release-server

A firmware release management service for IOT devices and friends
Python
2
star
24

flutter-app-builder

An HTTP server that builds a flutter app on POST request
Python
2
star
25

sql2code

Convert SQL to import-able code!
Python
1
star
26

cookiecutter-mpy

Python
1
star
27

network_file

A dead simple Dart library, to find and share files across devices on a network.
Dart
1
star
28

yt-set-ops

Run set operations on YouTube subscriptions of two users
HTML
1
star
29

flutter-use-location

A dead simple location access plugin for flutter.
Kotlin
1
star
30

flutter_trialware

A Trial-ware utility plugin for flutter
Dart
1
star
31

pip-plugin-collection

A collection of popular pip plugins
Python
1
star