Skip to main content
Participant
December 7, 2018
Answered

How can I permanently set the document on close action?

  • December 7, 2018
  • 1 reply
  • 540 views

Hi

I have a lot of documents to be commented on with the draw free form tool and I wish for them to be flatted automatically after the user close the document.

I  can run "this.flattenPages();"  for ether 1) Document Actions at the Document Will Close in the JavaScript tools or 2) page properties -> actions -> Page Close -> Run a JavaScript.

But the problem is it will only work for one document I set this up in. Is it possible to set this up globally/permanently so every single document will run the code?

I am using Adobe Acrobat XI Pro

This topic has been closed for replies.
Correct answer try67

Are you aware that this command (flattenPages) doesn't work in Reader at all?

1 reply

Legend
December 7, 2018

There seems very little point doing this before document close. Whatever you do will be instantly lost when the document is, immediately after, closed.

Participant
December 7, 2018

ok well I guess there is some sort of order they cant close save and flatten all in one step?

what I would like would be

1 user opens the document

2 user adds the comment

3 automatically flattens the drawing into the document

4 user saves the document

5 user closes the document

would this be possible?

Bernd Alheit
Community Expert
Community Expert
December 7, 2018

You can use an Action for steps 3 to 5. Create the Action with the Action Wizard.