Skip to content

JavaScript

What it shows

The JavaScript & Actions tab lists JavaScript entries and PDF actions detected in the document. It includes risk level, action type, trigger, location, and code or action content when available.

PDF Auditor JavaScript tab showing script risk details.

When to use it

Use it for untrusted PDFs, interactive forms, and documents with unexpected behavior.

JavaScript Table

ColumnWhat it means
RiskPDF Auditor’s risk classification for the script or action.
TypeThe JavaScript or PDF action type. Hover for the raw action subtype when available.
TriggerThe event that runs the action, such as open, close, page, annotation, or form events.
LocationWhere the action was found in the PDF structure.
Object IDThe related PDF object reference when available.
PageThe related page when the action is page- or annotation-associated.
TargetThe action target, such as a field, annotation, page, URL, or chained action target.
SizeThe script or action content size.
StorageWhere the code or action is stored, including compression details when present.
ChainedWhether the action is part of a chained action sequence.

Review steps

  1. Review each script location and action source.
  2. Look for code that submits data, opens URLs, launches actions, or changes viewer behavior.
  3. Cross-check Forms and XFA , Annotations , and Links .
  4. Treat unexpected JavaScript in external files as a reason for deeper review.

Details

Use the filter field to search entries. The table sorts high-risk entries first by default.

Select a row to open Risk Assessment, which shows Risk Level, Action Type, Trigger, Location, and Risk Factors. The Code Inspector shows the selected script or action content with syntax highlighting. Use Download to save the current code snippet.

Export

JavaScript & Actions can export table data as CSV or JSON. Export requires PDF Auditor Pro.

Tab settings

The tab settings menu includes Hide GoTo actions and Hide URI actions. Both are on by default so routine navigation and URL actions do not overwhelm script review; turn them off when you need a complete action inventory.