/ PDF

Small Android library to show PDF files

Small Android library to show PDF files

pdfview

Android PDF view - small and efficient PDF viewer embedded in your native app

It is based on ImageView and can handle big files with reasonable performance on low-end devices.

This is how fast scrolling of 680 page document looks like on low-end device:

pdfview

Usage:

To show pdf you just need a file on the device.

findViewById<PDFView>(R.id.activityMainPdfView).fromAsset("paper.pdf").show()

See sources for other methods to provide file.

Add to your project:

The library is hosted in jcenter, it is available by default on new android projects

     repositories {
        <...>
        jcenter()
    }

Add gradle dependency:

implementation "com.pdfview:pdfview-android:1.0.0"

GitHub