Skip to main content
Participant
June 12, 2020
Question

Remove executable code from PDF

  • June 12, 2020
  • 1 reply
  • 10928 views

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?

1 reply

JR Boulay
Community Expert
Community Expert
June 12, 2020

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

 

Acrobate du PDF, InDesigner et Photoshopographe
gfbgfhyAuthor
Participant
June 12, 2020

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

Dov Isaacs
Legend
June 12, 2020

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:

 

 

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