loryeam 1cf1c7ec28 horizontally and vertically center canvas and text layer
Also fixes an issue where text layer is not exactly on top of the canvas when
canvas width is less than screen width (which happens often in landscape mode or
when fully zoomed out)
2022-12-05 03:20:08 -05:00
2022-10-19 19:27:19 -04:00
2022-08-06 10:57:35 -04:00
2022-09-12 22:23:42 -04:00
2021-11-21 15:10:47 -05:00
2021-11-21 16:55:27 -05:00
2022-07-16 17:48:38 -04:00
2022-07-16 17:48:38 -04:00
2022-02-01 05:14:37 -05:00
2020-05-27 19:11:43 -04:00
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.

Description
Adaptation of the original PdfViewer app to work as a library (fork of https://github.com/GrapheneOS/PdfViewer)
Readme 2.5 MiB
Languages
Java 51%
Kotlin 24.2%
JavaScript 21%
CSS 3.1%
HTML 0.7%