How To Remove JavaScript From a PDF
Print PDF

For appellate courts that are configured to allow audio and video attachments:

PDFs with attached audio and/or video often also have JavaScript added and will be rejected because the JavaScript can cause Cross-Site Scripting attacks.

To remove JavaScript from the file:

1. Open the PDF with attached audio/video file.

2. Go to File > Save as Other > Optimized PDF.

3. Click OK to pop up message about the attached file.

4. Click on Discard Object on the left bar.

5. Check Discard all JavaScript actions.

6. Click OK and save.