Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 514 Bytes

README.md

File metadata and controls

26 lines (16 loc) · 514 Bytes

A lib for loading PDF in Android using WebView

Usage

Including in your project

Copy... /pdf/src/main/assets/... all files in the path

Use

val settings: WebSettings? = webView?.settings
settings?.javaScriptEnabled = true
settings?.allowFileAccess = true

settings?.builtInZoomControls = true
settings?.setSupportZoom(true)
settings?.displayZoomControls = false 

webView?.loadUrl("file:///android_asset/index.html?${pdfPath}");

Thanks

pdf.js