Highlighted

populate save as dialog box with predefined filename

Avatar

Guest

20-08-2008

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.

Replies

Highlighted

pguerett

21-08-2008

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).
Highlighted

Avatar

Guest

21-08-2008

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

pguerett

22-08-2008

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