PDF reader that doesn't support js

Which of the Linux PDF readers don’t support javascript? I know Sumatra, but it only available for Windows. Also, would you recommend to rather open unknown PDFs on Android (network turned off) or on Linux (network turned off)?

2 Likes

I personally recommend using a sandboxing approach here. I’m on Fedora, and I use Okular through a flatpak with the flatpak’s network permission disabled and its filesystem access restricted.

I recommend restricting access to all files through flatpak using flatseal, and incrementally allowing files/folders if needed.

As for JavaScript, I’ve seen that Evince doesn’t support it, and it’s packaged as a flatpak if you want sandboxing. As I’ve never used it, I can’t say if it’s a good app, but It’d be nice to not automatically load JavaScript on PDFs so I’ll check it out too!

3 Likes

You can turn JS off for Firefox’s PDF reader via about:config.

Chromium’s PDF viewer has a restricted subset of JS. There is also a way to turn off JS, since it respects the browser’s JS setting.

Also see PDF Reader That Is The Best For User Privacy? - #40 by sha123

If you want maximum security, you can use GrapheneOS’s PDFviewer on Android: https://play.google.com/store/apps/details?id=app.grapheneos.pdfviewer.play

Dangerzone is also an option.

3 Likes

Would you say using Android is more preferable than a Linux desktop? Although I am not using the Playstore, and I am not sure how secure it would be to use the Graphene apk from Github.

And on desktop: is the browser (which is not installed as a flatpak) be a better option than a PDF viewer as flatpak? Could you let me know how to disable js for local PDFs in Brave and Trivalent? I am not sure how to add “*.pdf$script".

@jerm Interesting, I just read from Gpg4win that they include Okular with js disabled (but obviously Gpg4win is Windows only).

This ebook reader is considered one of the best FOSS ebook readers:

Has anyone used this app before?

I am asking because I would also like to edit unknown PDFs.

for android use graphene os secure pdf viewer.

for linux use browser for opening pdf files or use any pdf reader from flatpak verified repo ( i repeat again the flatpak app should be verified don’t install unverified flatpak apps on to your system) and remove network permissions and all other unncessary permissions from the pdf reader.

But what about editing the PDF, like linearizing, PDF to image etc?

You can use Okular from flatpak or search for the pdf app with the essential features you need using any ai it will immediately give you the info.

1 Like

That is why I had asked if anyone has used the linked app.