프로젝트
GitHub에서 보기
fuusy/PdfWebview
소개
A lib for loading PDF in Android using WebView
생산성 및 자동화측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalA 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
관련 프로젝트 살펴보기
불러오는 중…