hi,
i have created a custom menu called Upload Loan Documents using the following code.
app.addMenuItem({cName:"-", cParent:"Help", cExec:" "});
app.addMenuItem({cName:"Upload Loan Documents", cParent:"Help",
cExec:"app.launchURL('http://localhost/Product/mainpage.aspx');Browse();"});
Now i want to run the executable EXE file on click of that Menu. Also i want to save the currently active pdf file.
can we save the file using the app.browseForDoc method.
Pls help me.
The browseForDoc() function simply collects a path from the user, this is all that it does. To save a file you have to use the "doc.saveAs()" function.
Thom Parker
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://partners.adobe.com/public/developer/en/acrobat/sdk/
pdf/javascript/AcroJS.pdf]Acrobat JavaScript Reference[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script