Sanitizing removes the parts of a PDF that can act instead of display: the action that runs when the file opens, document and page triggers, its scripts and attached files, and links and bookmarks that open a website, launch a program or run a script. Links and bookmarks that jump within the same document are kept. It is not a virus scan and does not declare a file safe.
How to use it
- Drop your PDF on the page, or click to choose it.
- Click Sanitize PDF. There are no options to set.
- Download the cleaned copy and use it in place of the original.
What is removed
The tool removes what tells a reader to do something, and the data behind it. Afterwards a reader opening the file has no instruction to run a script, show an attachment or follow a link out of the document, and the saved file no longer contains those scripts or attachments.
- The open action, which runs as soon as the document is opened.
- Additional actions on the document, on each page and on each annotation, such as scripts triggered by opening a page.
- The lists of scripts and attached files held by the document, and attachments pinned to a page as a paperclip icon.
- Link and bookmark actions of every kind except a jump to a place in the same file: web links, links that launch a file or program, and script links.
- Scripts on form fields, the XFA form definition, and embedded players for video, sound and 3D content.
Side effects
Web links stop working, because a link to a website is an outbound action. If the document needs them, do not sanitize it. Links and bookmarks that jump within the document keep working, including the ones that use named destinations.
The removal is from the file, not only from what a reader follows. Script and attachment data is deleted from the saved document, so a scanner that inspects every object in the file does not find it afterwards.
Form fields are kept, without their scripts. Comments and document properties are not handled here; see Remove annotations and Strip PDF metadata.
What sanitizing is not
It is not malware detection. The tool does not look for exploits in fonts, images or malformed structure, and it makes no statement about whether a file is harmful. If you need what is attached to a file, save it with Extract attachments before you sanitize.
Questions
Does this remove viruses from a PDF?
No. It removes scripts, automatic actions and attachments, which are the usual ways a PDF does something on its own. It does not scan for malware and cannot promise that a file is safe to open.
Why did the links in my PDF stop working?
Web links are removed on purpose, because they send the reader outside the document. Links and bookmarks that jump to another place in the same document are kept.
Will my fillable form still work?
The fields stay and can be filled in. Calculations or validation done by scripts may stop, because those scripts are removed.
What happens if the PDF has nothing to remove?
You get a copy back and the job succeeds. A file with no active content is the good outcome, not an error.
Are the attached files deleted from the PDF?
Yes. Their data is deleted from the saved file, not only hidden from the list a reader shows. Save anything you still need with Extract attachments first.
Can I sanitize a password-protected PDF?
Not while it is protected. Remove the protection first. Uploaded and cleaned files are deleted within one hour.