PDF-Reader for Local

A fast PDF reader component for Android development        Share From Here

Android PDFView is a library which provides a fast PDFView component for Android, withanimations,gestures, andzoom. It's based onVuDroidfor decoding the PDF file.

Get it

Android PDFView is available in Maven Central

Or via gradle:

compile 'com.joanzapata.pdfview:android-pdfview:1.0.4@aar'

Include PDFView in your layout

<com.joanzapata.pdfview.PDFView
android:id="@+id/pdfview"
android:layout_width="match_parent"
android:layout_height="match_parent"/>

Load a pdf file

 .pages(0,2,1,3,3,3)  
 .defaultPage(1)  
 .showMinimap(false)   
 .enableSwipe(true)  
 .onDraw(onDrawListener)   
 .onLoad(onLoadCompleteListener)   
 .onPageChange(onPageChangeListener)  
 .load();

pagesis optional, it allows you to filter and order the pages of the PDF as you need

onDrawis also optional, and allows you to draw something on a provided canvas, above the current page

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容