Skip to main content
Known Participant
Apr 9, 2017 9:33 PM UTC
Answered

JavaScript for PDF optimizer options???

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 is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
Apr 10, 2017 7:55 AM UTC

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...

6 replies

try67
Community Expert
Community Expert
Apr 9, 2017 10:04 PM UTC

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

Translate
suemo22Author
Known Participant
Apr 10, 2017 12:15 AM UTC

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

Translate
try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
Apr 10, 2017 7:55 AM UTC

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...

Translate