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

app.execMenuItem("Save") doesn't save document automatically

Community Beginner ,
Nov 27, 2019 Nov 27, 2019

I have inserted the statement 

 app.execMenuItem("Save")

in functions where I need automatic save to be performed. But the statement doesn't respond. Neither do I get an error. I read in some blog that Adobe will not find an error as  the function Save exists in the menu option. 

Is there any way of automatically saving a document? 

TOPICS
Create PDFs , General troubleshooting , PDF forms
1.4K
Translate
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
1 ACCEPTED SOLUTION
Community Expert ,
Nov 27, 2019 Nov 27, 2019
LATEST

"Save" is not one of the supported menu items that can be executed. For the complete list, see the link below.

https://help.adobe.com/en_US/acrobat/acrobat_dc_sdk/2015/HTMLHelp/index.html#t=Acro12_MasterBook%2FJ...

 

You can use Doc.saveAs and use the Doc.path as the cPath parameter to write over the original file but this only works in a privileged context.

View solution in original post

Translate
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 ,
Nov 27, 2019 Nov 27, 2019
LATEST

"Save" is not one of the supported menu items that can be executed. For the complete list, see the link below.

https://help.adobe.com/en_US/acrobat/acrobat_dc_sdk/2015/HTMLHelp/index.html#t=Acro12_MasterBook%2FJ...

 

You can use Doc.saveAs and use the Doc.path as the cPath parameter to write over the original file but this only works in a privileged context.

Translate
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