Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

How to disable the print option in A. Reader (in JavaScript)

Avatar

Former Community Member
I need be able to disable the print option from JavaScript code. I know that the print option can be disabled in the
"File > Form preferences > PDF Security" option in the main menu but i need to do this from a script into the document (
preferably in JavaScript language).




Thanks in advance!

Dan
2 Replies

Avatar

Former Community Member
The closest you can come using JavaScript is hiding the menu item and toolbar button. Take a look at the Acrobat JavaScript refence and the app.hideToolbarButton and app.hideMenuItem methods. http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/javascript/AcroJSGuide.pdf



However, any savvy user can still print by hitting CTRL-P or right clicking and choosing Print.



Chris

Adobe Enteprise Developer Support

Avatar

Former Community Member
HI!

I have the same problem =)

I have fixed this issue using the "app.fs.isFullScreen = true;" statement.

Doing this you don't see toolbar anymore.



You can use "hideToolbarButton" instruction and, maybe, you can obtain a more interesting result.



Below there is a very interesting document:

http://partners.adobe.com/public/developer/en/acrobat/sdk/5186AcroJS.pdf



I'm sorry for my poor english :-)



Bye,

Roberto (from Italy)



Ps= Do you know how I can obtain a list of required fields in a form?

thank's!