'Save as' button with javascript

maleks85472773

28-10-2015

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

Accepted Solutions (0)

Answers (1)

Answers (1)

radzmar

MVP

28-10-2015

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");