Adaptation of the original PdfViewer app to work as a library (fork of https://github.com/GrapheneOS/PdfViewer)
Go to file
Daniel Micay 1df21568f1 add README based on release notes 2020-05-27 19:11:43 -04:00
app increment version to 5 2020-05-27 19:11:14 -04:00
gradle/wrapper update gradle to 6.3 2020-03-31 11:46:03 -04:00
.gitignore add releases to gitignore 2020-05-11 23:58:17 -04:00
LICENSE initial commit with overhauled / rebranded project 2019-06-27 23:22:08 -04:00
PDFJS_LICENSE initial commit with overhauled / rebranded project 2019-06-27 23:22:08 -04:00
README.md add README based on release notes 2020-05-27 19:11:43 -04:00
build.gradle update Android gradle plugin to 3.6.3 2020-05-11 23:56:57 -04:00
gradle.properties add memory limit from standard gradle.properties 2019-06-28 22:54:53 -04:00
gradlew update gradle to 6.1.1 2020-02-10 08:58:23 -05:00
gradlew.bat update gradle to 6.3 2020-03-31 11:46:03 -04:00
settings.gradle initial commit with overhauled / rebranded project 2019-06-27 23:22:08 -04:00

README.md

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.