Link to home
Start Free TrialLog in
Avatar of yo_bee
yo_beeFlag for United States of America

asked on

Adobe JavaScript Question

I am looking for something to restrict the Save As button on PDF in a certain directory.

I know I can add a file.js to the C:\Program Files\Adobe\Acrobat 11.0\Acrobat\Javascripts path that contains
app.hideToolbarButton("Save")

Open in new window


That is all PDF's then.

I was thinking of apply password security to the file and also leveraging javascript to remove the save buttons if the folder location matches the folder location of the file.

I saw that I can use This.Path to get the entire path of the current file.
Can I incorporate IF statement using This.Path then App.hideToolBarButton("Save")?
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of yo_bee

ASKER

I tried app.getpath("app", "javascripts")

Is there a way to use GetPath on the current file?
No, you CAN'T get it.
Avatar of yo_bee

ASKER

:(