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

Avatar

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)

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct Reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct Reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
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");