Expand my Community achievements bar.

Elevate your expertise and be recognized as a true influencer! Nominations for the exclusive Adobe Community Advisor program 2023 are now OPEN.

populate save as dialog box with predefined filename

Avatar

Not applicable
I have a button in a form that when click, pop up a 'save as' dislog box. The java script command is as



app.execMenuItem("SaveAs");



How can I populate a pre-defined filename to the dialog box?

Thank you.
3 Replies

Avatar

Not applicable
You cannot ...the user has to pick the filename that they want to save. This stops you from doing a programatic save without the user knowing it (a security concern).

Avatar

Not applicable
Thank you. Is there any work-around? Can I copy a filename to clipboard from the pdf form and user just need to paste it into the 'save as' dialog box.

Avatar

Not applicable
Nope ...no programatic access to clipboard from Acrobat/Reader. The only way you can do this is to certify the form - which has its own set of issues (mostly management of certs).