- Home
- Case Management (CM) / Electronic Case Filing (ECF)
- Resources and Documentation
- Remove JavaScript from PDF
Remove JavaScript from PDF (Step 4)
JavaScript can cause Cross-Site Scripting attacks. Removing JavaScript from a PDF can be done in several ways, depending on what software you have available. The most reliable methods are to use a dedicated PDF editor like Adobe Acrobat Pro or a simple "print to PDF" function.
Option 1: Use a PDF Editor like Adobe Acrobat Pro:
- Open the PDF file in Adobe Acrobat Pro.
- Go to File > Save as Other > Optimized PDF.
- Click OK to pop up message about the attached file.
- In the PDF Optimizer window, click on Discard Objects in the left sidebar.
- In the right pane, make sure the checkbox for Discard all JavaScript Actions is checked.
- Click OK and save.