I am trying to perform a "Save As" function that will automatically create a name of the file from fields of the form (LastName and FirstName)
I have read through many tutorials and forums, but just get more confused.
I currently have the following:
// SaveAs Function
var mySaveFileName = app.trustedFunction(function(doc) {
app.beginPriv();
var myFileName = "LastName" + "FirstName" + ".pdf";
doc.saveAs(myFileName);
app.endPriv();
});
with the following on my button:
mySaveFileName(myFileName);
this is about the fourth option of different code that I have tried and nothing has worked.
Any help with exact code would be much appreciated.
thank you
http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/js/html/wwhelp.htm?href=JS_API_AcroJS.88.1.php#1515776&accessible=true