I placed this code into acroforms to create and save a document in the mydocs folder. It won't work? Why?
I am new to javascripting. I got this script from the Javascript for acrobat reference API.
var myDoc = app.newDoc();
var myPath = app.getPath("user", "documents") + "/myDoc.pdf"
myDoc.saveAs(myPath);
myDoc.closeDoc();
To use these functions you'll need to create a folder level script using the "app.trustedFunction()" function.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script