These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

JavaScript

Sebosin
Registered: Jan 9 2007
Posts: 4

1. - How I can execute a Javascript when opening the PDF?
 
2. - How I can hide the toolbars?
 
Thank you very much.

My Product Information:
Acrobat Pro 7, Windows
tedpadova
ExpertTeam
Registered: Dec 31 2005
Posts: 848
Select Advanced > Document Processing > Document JavaScripts and add your script in the JavaScript Functions dialog box.If you want to hide toolbars on open, use the JavaScript Functions dialog box.

Type a name (any name you want to use) in the Script Name text box in the JavaScript Functions dialog box and click Add.

Delete the default text in the JavaScript Editor and add the following code:

app.toolbar = false;

ted

The author of numerous books on Acrobat, Photoshop, Illustrator and the Adobe Creative Suite, and an international speaker on Adobe Acrobat, Ted Padova is a well-known PDF guru.