How does mobile Firefox still have no integrated PDF viewer but instead make you download and shell out to a dedicated PDF app (requiring you to find one you trust and waste storage space each time you view a PDF)?!
Conversation
Replying to
GrapheneOS has a security-focused PDF viewer based on using pdf.js in the WebView. Can use it elsewhere:
* play.google.com/store/apps/det
* github.com/GrapheneOS/Pdf
Apps can directly open a PDF with it without saving it as a download but browsers may not commonly have support for that.
1
1
6
It's currently very barebones but we plan on improving it quite a lot in the near future. Our focus was making a privacy/security focused Camera app but now that app is quite mature and we plan on shifting focus over to making the PDF viewer into a modern app with more features.
3
It's more secure than browser integrated pdf.js because we disable dynamic scripts/styles and each PDF is rendered in a separate stateless WebView instance with no access to the network, etc.
It's fairly quick but portable support for higher zoom is tricky due to memory limits.

