From 59973a6b42485b0c430123c8be649fb24689b9f3 Mon Sep 17 00:00:00 2001 From: Hardcore Sushi Date: Fri, 8 Sep 2023 19:48:14 +0200 Subject: [PATCH] libpdfviewer: custom README --- README.md | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 3d756a5..1201d23 100644 --- a/README.md +++ b/README.md @@ -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](https://github.com/GrapheneOS/PdfViewer) to work as a library. + +## Warning ! +The only goal of this library is to be integrated in [DroidFS](https://forge.chapril.org/hardcoresushi/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/`.