[已弃用] 一个用于 Android 开发的快速 PDF 阅读器组件
Android PDFView is a library which provides a fast PDFView component for Android, with animations, gestures, and zoom. It's based on VuDroid for decoding the PDF file.
Android PDFView is available in Maven Central.
<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'
<com.joanzapata.pdfview.PDFView
android:id="@+id/pdfview"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
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 needonDraw is also optional, and allows you to draw something on a provided canvas, above the current page…
暂无开放 Issues,或尚未同步最近议题。