libpdfviewer: custom README

This commit is contained in:
Matéo Duparc 2023-09-08 19:48:14 +02:00
parent 476f4aa685
commit 59973a6b42
Signed by: hardcoresushi
GPG Key ID: AFE384344A45E13A
1 changed files with 6 additions and 11 deletions

View File

@ -1,11 +1,6 @@
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.
Fork of GrapheneOS' [PdfViewer]( to work as a library.
## Warning !
The only goal of this library is to be integrated in [DroidFS]( Use it at your own risk !
The npm dependency has been removed. Instead, `pdf.min.js` and `pdf.worker.min.js` must be manually placed in `app/pdfjs-dist/build/`.