at Form:Ready - I need to set the form view ("Fit to Width")and remove the toolbar views (Navigation buttons (hide) and Navigation toolbar - F4, and Top Menu - F8).
How can I code for this?
Solved! Go to Solution.
Views
Replies
Total Likes
I woudl put it on the docReady event .....Paul
Views
Replies
Total Likes
The Fit to Width command woudl be:
app.execMenuItem("FitWidth");
Hiding Navigationtoolbar woudl be:
app.execMenuItem("ShowHideToolbarNavigation");
Don't know about the other two ......I will have to look them up when I get a chance.
Paul
Very cool.
Where are you looking this information up in?
Would love to be in a 'self help' mode more often.
What about if I wanted to 'Fit Actual Size'?
Views
Replies
Total Likes
You are controlling Acrobat so you need AcroForms commands for that. I am using the Acrobat Javascritp API reference.
For actual size the command is:
app.execMenuItem("ActualSize");
Paul
Views
Replies
Total Likes
Well, I tried it (thanks for the reference material) - but it is not working.
Is there a particular event I need to set this in?
Currently, I put it in thr form:ready event - with no success.
I'm so close - I can taste it.
Views
Replies
Total Likes
I woudl put it on the docReady event .....Paul
Views
Replies
Total Likes
Everything works - but the result is more of a toggle.
Is there any way to retrieve the state of the toolbar (visible or hidden) and then if the toolbar is visible - then use the JS APIs?
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies