AuraDoc
Sign inSign up

How to find and remove hidden scripts from a PDF

Some PDFs carry small programs that run when the file opens or when a field changes. This guide checks what a file contains, removes the scripts and leaves the visible pages as they are.

Removing scripts also switches off automatic calculations in form fields. If the form needs to add up numbers, keep an untouched copy.

Step by step

  1. Check the file first

    Open the quality report tool and choose the PDF. It lists pages, size, text, images and fonts, gives a score and shows suggestions. The report runs in your browser.

  2. Remove the JavaScript

    Open the remove JavaScript tool and start it. All scripts and automatic actions are taken out. The pages look the same and the work happens on your device.

  3. Sanitise when you need more

    To also clear metadata, embedded attachments and form fields, run the sanitise tool on the result. The visible pages stay.

  4. Read the report again

    Run the quality report on the new file to confirm that it still opens and has the pages you expect.

  5. Share the clean copy

    Send the clean file and keep the original in a safe place. The original is never changed by these tools.

Tools used in this guide

Questions about this task

Will my form still work?
Fields stay, but automatic calculations and checks stop working because they depend on scripts. Keep a copy if you still need them.
What does sanitising remove?
JavaScript, metadata, embedded attachments and form fields. The visible pages remain.
Does the file leave my device?
The quality report and the JavaScript removal run in your browser. Sanitising runs on a secure server and the file is deleted after the result is sent.

More guides

Need more than a quick fix?

AuraDoc is a document platform with OCR, AI search and summaries, and more than 60 PDF tools for teams. Try it free for 7 days.

Tools marked “Secure server” send your file once, over an encrypted connection, to an isolated AuraDoc server. It is processed in a throw-away process and deleted as soon as the result is sent back. Fair use and anti-abuse policy