Adaptation of the original PdfViewer app to work as a library (fork of
Go to file
r3g_5z e34c727ff7 Update pdf.js to v3.2.146
Signed-off-by: r3g_5z <>
2023-01-09 01:20:41 -05:00
.github update to JDK 19 2022-10-19 19:27:19 -04:00
app silence spurious getParcelable deprecation warning 2022-12-28 12:15:34 -05:00
gradle add Gradle verification metadata 2023-01-09 01:11:30 -05:00
third_party Update pdf.js to v3.2.146 2023-01-09 01:20:41 -05:00
.gitignore use Gradle Kotlin DSL 2021-11-21 15:10:47 -05:00
.gitmodules add pdfjs-dist submodule and symlink minified files 2022-01-22 22:12:31 -05:00
LICENSE update copyright notice 2022-02-01 05:14:37 -05:00
PDFJS_LICENSE initial commit with overhauled / rebranded project 2019-06-27 23:22:08 -04:00 add README based on release notes 2020-05-27 19:11:43 -04:00
build.gradle.kts drop non-working dependabot workaround 2022-12-25 10:14:16 -05:00 disable obsolete jetifier 2021-11-21 16:55:27 -05:00
gradlew update Gradle to 7.6 2022-12-09 08:48:17 -05:00
gradlew.bat update Gradle to 7.6 2022-12-09 08:48:17 -05:00
settings.gradle.kts use Gradle Kotlin DSL 2021-11-21 15:10:47 -05:00

Simple Android PDF viewer based on pdf.js and content providers. The app doesn't require any permissions. The PDF stream is fed into the sandboxed WebView without giving it access to content or files. Content-Security-Policy is used to enforce that the JavaScript and styling properties within the WebView are entirely static content from the apk assets. It reuses the hardened Chromium rendering stack while only exposing a tiny subset of the attack surface compared to actual web content. The PDF rendering code itself is memory safe with dynamic code evaluation disabled, and even if an attacker did gain code execution by exploiting the underlying web rendering engine, they're within the Chromium renderer sandbox with no access to the network (unlike a browser), files, or other content.