Acrobat 8 in a Wndows environment.
I have done web searches in trying to get this to work, and some responses suggest that it cannot be done. I find this virtually impossible to believe, so let me see if I can phrase my question better than the questions my google search uncovered.
I have an acrobat form on my website that users are expected to fill out. When they hit the SAVE icon, or any SAVE button I place on the form, the default location is SOMETIMES myDocuments on the END USERS computer! Other times it is the location that the file was opened from. I have not discovered why this would change.
I need to dictate the default location for the SAVE AS dialog box to the location where the file came from (which is a network location). It would be completely ludicrous if it were not possible to dictate the default path in the SAVE AS routine, so I am sure I am just missing something obvious.
Editing the registry is not viable. I dont want to change the default location of ALL of the end users documents, just this one. I am open to using JavaScript if need be, but there is absolutely no reason I should have to go to that length for such a rudimentary function.
I must be missing something obvious, so I apologize for my eyesight!
Acrobat is sandboxed. Any contact between functionality on a PDF and things outside the PDF, like the users system, is considered a no-no and it is highly regulated. A PDF could come from anywhere, without direct permission from the user, Acrobat has no way of knowing if a document is a happy friendly PDF or a malicious evil PDF. I'm willing to bet that you would be very unhappy if a random PDF could aquire information about your folder struture without your knowledge.
There are special circumstances where a PDF can save itself off to a specific location on the user's hard drive. But, this requires that the user deliberately setup some special stuff on thier system to allow this.
I suggest you sign up for my eSeminar next week:
http://www.acrobatusers.com/events/1973/tech-talk-form-data-handling
I talk a little bit about saving files.
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script