• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How can I permanently set the document on close action?

New Here ,
Dec 06, 2018 Dec 06, 2018

Copy link to clipboard

Copied

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

TOPICS
Acrobat SDK and JavaScript , Windows

Views

390

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 07, 2018 Dec 07, 2018

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

Votes

Translate

Translate
LEGEND ,
Dec 06, 2018 Dec 06, 2018

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 06, 2018 Dec 06, 2018

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 06, 2018 Dec 06, 2018

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 07, 2018 Dec 07, 2018

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines