Highlighted

populate save as dialog box with predefined filename

Avatar

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

Avatar

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692
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

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

Avatar

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

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