7

In some pdf file readers for MS Windows such as those from Adobe or Foxit, it is possible to turn off the ability to implement javascript in a pdf file. Is that possible with Evince (Document Viewer) 3.2.1? I don't see any option to do so.

Or, is it that Evince does not implement javascript in pdf files at all?

5

Essentially, it doesn't support it, so you can't turn it off.

  • I also searched the net and came across a Nabble thread (old.nabble.com/…) to the same effect with the mention that the team is looking at supporting javascript – user25656 Nov 14 '11 at 5:53
3

[update 05.2018]: bug moved over to gitlab.

There is a bug report on this on bugzilla.
It is classified as Normal Enhancement.
Unfortunately I have no clue if they are actively working on it or not..

  • The upstream poppler bug noted in March 2017 that "we already "support" Javascript, i.e. extract its contents" and posted a video demonstrating "partial support" in Okular (the KDE poppler wrapper), so it is conceivable that Evince can gain this support in the future, though it'd be harder than for Okular (since Okular is a KDE app, it uses Qt, which has a built-in JS interpreter). I hope they disable JS by default; it's too easy to abuse with malware. – Adam Katz Apr 7 '17 at 21:13
2

No, evince does not support Javascript.


How to verify this?

To make it easier for others to verify the up-to-dateness of this answer, you can query two information sources:

  1. There exists an official bug report (Support Javascript in PDF Documents) handling the feature request for Javascript, which - by now - does not mention a version for which the Javascript support is planned:

    Version: unspecified
    [...]
    Importance: Normal enhancement

  2. Look at the official roadmap of evince, especially at the Javascript line from Roadmap#Unresourced: Evince Roadmap - Unresourced - Highlight Javascript Status

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy