Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

'Save as' button with javascript

Anonymous
Not applicable

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

1 Reply
radzmar
Level 10
Level 10

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