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

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

New Here ,
Feb 19, 2018 Feb 19, 2018

Copy link to clipboard

Copied

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

Views

334

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

Votes

Translate

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

Copy link to clipboard

Copied

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.

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

Copy link to clipboard

Copied

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

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

Copy link to clipboard

Copied

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.

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

Copy link to clipboard

Copied

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

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