A Android PDF Viewer that render pdf using PdfRenderer
+ kotlin coroutines
and displays it in a RecyclerView
.
- This code will not be published as a library, but you can use it as you want.
- Requires API Level 21
PdfViewer.Builder(rootView, lifecycleScope)
.build()
.load(file)
PdfViewer.Builder(rootView)
.controller(PdfViewController)
.quality(PdfPageQuality)
.setZoomEnabled(Boolean)
.setMaxZoom(Float)
.setOnPageChangedListener(onPageChangedListener)
.setOnErrorListener(onErrorListener)
.setRenderDispatcher(Dispatchers.Default)
.build()
.load(file)
pdfViewer.load(file : File)
pdfViewer.load(url : String)
pdfViewer.load(@RawRes resId : Int)
pdfViewer.load(inputStream : InputStream)
pdfViewer.load(uri : Uri)
Scroll | Zoom |
---|---|