Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

populate save as dialog box with predefined filename

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
pguerett
Level 10
Level 10
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).
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.
pguerett
Level 10
Level 10
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).