Skip to main content
Known Participant
April 9, 2017
Answered

JavaScript for PDF optimizer options???

  • April 9, 2017
  • 1 reply
  • 1189 views

Hi

I would like to know if there is a java script code for all these "Discard User Data" options? I am using Adobe Acrobat Pro X 10.1.16 on Windows 7.

Thanks.

This topic has been closed for replies.
Correct answer try67

Create a new Preflight Profile and then create a new Fixup for it.

Search the list of Fixup commands for "discard" and you'll see that there are several of them:

Add all of them to your Fixup and see if that works for you...

1 reply

try67
Community Expert
Community Expert
April 9, 2017

Not directly, but you can execute a Preflight Profile which does that using the preflight method of the Document object.

suemo22Author
Known Participant
April 10, 2017

Can you give me an example of how to do this with "discard all objects"?

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
April 10, 2017

Create a new Preflight Profile and then create a new Fixup for it.

Search the list of Fixup commands for "discard" and you'll see that there are several of them:

Add all of them to your Fixup and see if that works for you...