Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JoanZapata/android-pdfview
[DEPRECATED] A fast PDF reader component for Android development
https://github.com/JoanZapata/android-pdfview
Last synced: about 2 months ago
JSON representation
[DEPRECATED] A fast PDF reader component for Android development
- Host: GitHub
- URL: https://github.com/JoanZapata/android-pdfview
- Owner: JoanZapata
- License: gpl-3.0
- Created: 2012-11-21T16:19:38.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2016-07-04T19:53:19.000Z (over 8 years ago)
- Last Synced: 2024-10-15T12:42:04.310Z (about 2 months ago)
- Language: Java
- Homepage: http://joanzapata.com/android-pdfview/
- Size: 13.7 MB
- Stars: 2,835
- Watchers: 159
- Forks: 785
- Open Issues: 141
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- -awesome-android-ui - Android PDFView - 3.0) | <img src="/art/android-pdfview.png" width="100%"> (Index `(light-weight pages)`)
- awesome-android-ui - Android PDFView - 3.0) | <img src="/art/android-pdfview.png" width="100%"> (Index `(light-weight pages)`)
- awesome-android-ui - Android PDFView - 3.0) | <img src="/art/android-pdfview.png" width="100%"> (Index)
- awesome-android-ui - https://github.com/JoanZapata/android-pdfview
- awesome-android-ui - https://github.com/JoanZapata/android-pdfview
README
# This project is no longer maintained.
### You can find a good replacement [here](https://github.com/barteksc/AndroidPdfViewer), which is a fork relying on Pdfium instead of Vudroid/MuPDF for decoding PDF files, allowing it to use the Apache License 2.0 which gives you much more freedom.----------------------
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-android--pdfview-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/1332)
[![Screenshot of the sample app](https://raw.github.com/JoanZapata/android-pdfview/master/device.png)](https://play.google.com/store/apps/details?id=com.joanzapata.pdfview.sample)
**Android PDFView** is a library which provides a fast PDFView component for Android, with ```animations```, ```gestures```, and ```zoom```. It's based on [VuDroid](https://code.google.com/p/vudroid/) for decoding the PDF file.
# Get it
Android PDFView is **available in Maven Central**.
```xml
com.joanzapata.pdfview
android-pdfview
1.0.4
apklib```
Or via gradle:
```
compile 'com.joanzapata.pdfview:android-pdfview:1.0.4@aar'
```# Include PDFView in your layout
```xml
```
# Load a PDF file
```java
pdfView.fromAsset(pdfName)
.pages(0, 2, 1, 3, 3, 3)
.defaultPage(1)
.showMinimap(false)
.enableSwipe(true)
.onDraw(onDrawListener)
.onLoad(onLoadCompleteListener)
.onPageChange(onPageChangeListener)
.load();
```* ```pages``` is optional, it allows you to filter and order the pages of the PDF as you need
* ```onDraw``` is also optional, and allows you to draw something on a provided canvas, above the current page# License
```
Copyright 2013-2015 Joan ZapataThis file is part of Android-pdfview.
Android-pdfview is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.Android-pdfview is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with Android-pdfview. If not, see .
```