# PdfWebview **Repository Path**: yongyf/PdfWebview ## Basic Information - **Project Name**: PdfWebview - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-01-13 - **Last Updated**: 2022-05-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README **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 ```js 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](https://github.com/mozilla/pdf.js)