


I want to add a 'Save as' button in my pdf, for that I introduice this code :
app.alert("1");
this.saveAs("/c/temp/temp.pdf");
app.alert("2");
Only first message appear. Any help please
In Designer you have to use another version of JavaScript than in Acrobat.
replace
this.saveAs("/c/temp/temp.pdf");
with
event.target.saveAs("/c/temp/temp.pdf");