Skip to main content
Participating Frequently
February 19, 2018
Answered

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

  • February 19, 2018
  • 1 reply
  • 542 views

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

This topic has been closed for replies.
Correct answer try67

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.

1 reply

try67
try67Correct answer
Community Expert
February 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.

Participating Frequently
February 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

try67
Community Expert
February 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.