Skip to content

toxicspot/pdfview-android

Repository files navigation

pdfview

Build Status Download License

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.

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:0.0.3" //not yet in jcenter

Thanks to Manuel Lilienberg for initial implementation of this library and subsampling-scale library for influence.

About

Small Android library to show PDF files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 93.8%
  • Kotlin 6.2%