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

I have a button that will change all fields to read only.

New Here ,
Feb 19, 2018 Feb 19, 2018

Is there a way to set up save as to make a copy of file before it changes it to read only so the user can still have a editable file. I am using Acrobat Pro X

Thanks M

TOPICS
Acrobat SDK and JavaScript
482
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

correct answers 1 Correct answer

Community Expert , Feb 19, 2018 Feb 19, 2018

You can open the Save As dialog using this code:

app.execMenuItem("SaveAs");

However, if you want to make sure the file was indeed saved under a new name that's a bit trickier.

Translate
Community Expert ,
Feb 19, 2018 Feb 19, 2018

You can open the Save As dialog using this code:

app.execMenuItem("SaveAs");

However, if you want to make sure the file was indeed saved under a new name that's a bit trickier.

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
New Here ,
Feb 19, 2018 Feb 19, 2018

Thanks

Is there a way to put that in a pop up message so I can tell them why to save a copy?

Thanks M

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 ,
Feb 19, 2018 Feb 19, 2018

Sure, add something like this before the other command:

app.alert("You should save a copy of this file before submitting it.",3);

Note, though, that after the file is saved the version that is submitted will be the one with the new file-name, not the original one.

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
New Here ,
Feb 19, 2018 Feb 19, 2018
LATEST

Thanks

You are always helpful. I will see if this is what my customer wants tomorrow as it is a holiday here today.

Thanks M

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