Skip to main content
Participant
Jun 12, 2020 4:29 PM UTC
Question

Remove executable code from PDF

Hi there, I have a series of pdf files that I need a way to figure out if there is executable code inside the files.  Do you know of a good method to do this on a batch level?

15 replies

JR Boulay
Community Expert
Community Expert
Jun 12, 2020 4:43 PM UTC

You can use the Preflight tool or the PDF Optimiser (Save as Other).

 

Translate
Acrobate du PDF, InDesigner et Photoshopographe
gfbgfhyAuthor
Participant
Jun 12, 2020 6:35 PM UTC

Hmm the pdf is still being rejected.  Is there a way to extract the contents that show the code?

Translate
Dov Isaacs
Legend
Jun 12, 2020 6:50 PM UTC

Exactly what reason is being give by whom for the file being rejected?

 

JavaScript isn't the only possibility here. Perhaps whatever is examining the PDF file is looking for any embedded attached files. You can get rid of those via the optimizer as follows:

 

 

Translate
- Dov Isaacs, former Adobe Principal Scientist (April 30, 1990 - May 30, 2021)