# 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
<dependency>
<groupId>com.joanzapata.pdfview</groupId>
<artifactId>android-pdfview</artifactId>
<version>1.0.4</version>
<type>apklib</type>
</dependency>
```
Or via gradle:
```
compile 'com.joanzapata.pdfview:android-pdfview:1.0.4@aar'
```
# Include PDFView in your layout
```xml
<com.joanzapata.pdfview.PDFView
android:id="@+id/pdfview"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
```
# 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 Zapata
This 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 <http://www.gnu.org/licenses/>.
```
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
android-pdfview-master.zip (83个子文件)
android-pdfview-master
gradlew.bat 3KB
gradlew 5KB
pom.xml 6KB
android-pdfview-sample
pom.xml 5KB
res
menu
actionbar.xml 1024B
drawable-hdpi
ic_about.png 2KB
drawable-xhdpi
ic_about.png 2KB
drawable
ic_launcher.png 78KB
values
strings.xml 824B
styles.xml 839B
drawable-mdpi
ic_about.png 1KB
layout
activity_main.xml 1KB
assets
about.pdf 102KB
sample.pdf 2.24MB
keystore 1KB
src
main
java
com
joanzapata
PDFViewActivity.java 3KB
AndroidManifest.xml 1KB
build.gradle 827B
HEADER.txt 688B
RELEASE.md 333B
gradle
wrapper
gradle-wrapper.jar 50KB
gradle-wrapper.properties 951B
device.png 106KB
android-pdfview
pom.xml 2KB
res
.gitignore 116B
src
main
java
com
joanzapata
pdfview
AnimationManager.java 4KB
exception
FileNotFoundException.java 1KB
model
PagePart.java 3KB
RenderingAsyncTask.java 4KB
SpiralLoopManager.java 3KB
CacheManager.java 5KB
PDFView.java 40KB
DragPinchManager.java 5KB
DecodingAsyncTask.java 2KB
util
Constants.java 2KB
ArrayUtils.java 2KB
NumberUtils.java 1KB
FileUtils.java 2KB
DragPinchListener.java 10KB
listener
OnDrawListener.java 1KB
OnLoadCompleteListener.java 1KB
OnPageChangeListener.java 1KB
org
vudroid
pdfdroid
codec
PdfPage.java 4KB
PdfDocument.java 1KB
PdfContext.java 608B
core
models
ZoomModel.java 2KB
CurrentPageModel.java 534B
DecodingProgressModel.java 593B
multitouch
MultiTouchZoom.java 274B
MultiTouchZoomImpl.java 2KB
DocumentView.java 11KB
VuDroidLibraryLoader.java 310B
DecodeServiceBase.java 9KB
Page.java 3KB
PageTreeNode.java 9KB
DecodeService.java 945B
events
DecodingProgressListener.java 611B
BringUpZoomControlsEvent.java 267B
ZoomListener.java 370B
BringUpZoomControlsListener.java 127B
Event.java 108B
ZoomChangedEvent.java 449B
EventDispatcher.java 574B
SafeEvent.java 932B
CurrentPageListener.java 542B
utils
PathFromUri.java 633B
MD5StringUtil.java 768B
codec
CodecPage.java 336B
CodecDocument.java 162B
CodecContext.java 253B
project.properties 1KB
AndroidManifest.xml 1KB
build.gradle 274B
libs
armeabi-v7a
libvudroid.so 3.54MB
armeabi
libvudroid.so 3.6MB
arm64-v8a
libvudroid.so 3.9MB
x86
libvudroid.so 3.31MB
mips
libvudroid.so 4.62MB
.gitignore 316B
README.md 3KB
settings.gradle 271B
LICENSE.txt 34KB
build.gradle 524B
共 83 条
- 1
资源评论
newbieja
- 粉丝: 5
- 资源: 15
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功