Giter VIP home page Giter VIP logo

pdfview-android's Introduction

pdfview

Build Status Maven Central License Android Arsenal

Android PDF view - small (73kB .aar file, ~400 methods before minification) and efficient PDF viewer embedded in your native app

It is based on ImageView and can handle big files with reasonable scrolling and zooming performance.

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

Example1

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 a file.

If pdf is on remote host - use your network client to download it to the cache folder, then show it. This library provides view, it doesn't do network requests.

There is a sample of how to do it.

Add to your project:

The library is hosted in the central repository.

     repositories {
        <...>
        mavenCentral()
    }

Add gradle dependency:

implementation "com.dmitryborodin:pdfview-android:1.1.0"

Wiki

Please take a look into the wiki to find out the technical details.

Contrubitions

Contributions are welcome. Just open PR to dev branch.

Feel free to open issue with any questions.

Credits

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

pdfview-android's People

Contributors

dmitry-borodin avatar mspnr avatar bharathvishal avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.