Built-in PDF viewer

It is common for transport companies to send PDF tickets to emails, but some Android phones don’t have a PDF viewer out of the box.

A solution could be to have a built-in PDF viewer in Delta Chat. It seems Slack has a built-in PDF viewer so users don’t need to have a separate PDF viewer to see the documents. Security of this feature is questionable though, one of the first search results is a vulnerability in Slack because of its PDF viewer: HackerOne

SimpleX users/developers also discussed adding built-in PDF viewer recently, but some security-conscious users object in the user group because they are afraid of similar vulnerabilities and PDF viewer having access to the application storage.

Maybe it is possible to use WebView and pdf.js to securely display PDF files outside of the application context.

3 Likes

I agree with the pdfjs idea. That is widely used can probably also be configured / adjusted to disable potential risky/dangerous features.

1 Like

pdfjs is what Firefox uses? :thinking: (Because seems to work fine there.) :ok_hand:
Kind regards!