I am using Acrobat 9 and have created a form which I would like users to be able to save the form to a specific target location and use a file name generated from the one of the fields in the form. The JavaScript would be executed upon a mouse up event and saved within the form itself.
I have tried the conventional app.execMenuItem("saveAs") function but it seems my request is a bit more demanding.
Can anyone help with achieving this function please?
I've tried the following with no luck:
app.beginPriv();
var myDoc = app.newDoc();
var myPath = app.getPath("user", "documents") + this.getField(“billcompany”) + ".pdf";
myDoc.saveAs(myPath);
return myPath;
myDoc.closeDoc();
app.endPriv();
AND
this.saveAs("/c/customer/invoices/" + this.getField(“billcompany”) + ".pdf");
Are you getting what you expect to get from the methods your are using?
George Kaiser