Skip to content
Proyectos

Acerca de

A lib for loading PDF in Android using WebView

Productividad y automatización

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

A lib for loading PDF in Android using WebView

Usage

Including in your project

Copy... /pdf/src/main/assets/... all files in the path and paste it into the assert directory of your project.

Check out the article for details https://juejin.cn/post/7017840637450043422

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

Explorar proyectos relacionados

Cargando…