PDF/A error: JavaScript or a launch action is present

PDF/A forbids JavaScript, launch actions and other executable content. How to remove them.

The document contains JavaScript, a launch action or another action that depends on the viewer. Remove the actions and save again.

ISO 19005-1 clause 6.6 · Actions

What causes it

  • Form validation or calculation scripts.
  • Print or submit buttons wired to actions.
  • A launch action opening an external file or app.
  • Leftover document-level scripts from a form template.

How to fix it

  1. Remove scripts and actions at the source and re-export.
  2. Flatten form fields into static content.
  3. Convert the document, which strips the actions.

Or drop the file into the converter, which fixes what it can in your browser.

FAQ

Are normal hyperlinks a problem?

No. Links to a URL aren't what this check is about.

Why is JavaScript forbidden?

It makes the document depend on a scripting engine that may not exist later.

Related

← All PDF/A errors