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

Reenable Printing with Code

ozsupra
Registered: May 17 2009
Posts: 22

I have disabled printing on my PDF however this also appears to apply to my print code (Javascript) attached to a button.

Is there a way of overriding the form settings with code to allow printing?

Thanks in advance.
Adrian.

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
You have to remove the protection settings for the print function for your form.
Look unter File menu > Properties > PDF protection tab.

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

ozsupra
Registered: May 17 2009
Posts: 22
Yes, I am aware of that, however, it completely defeats the purpose of my required intention ie to prevent users from printing the form unless then click on "my Button".

Surely there is a way of overrighting the PDF security with code?

Adrian
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
No, there is no code to bypass the security settings.

If you don't want the users using the menu functions of Reader/Acrobat you can hide them, as long the form is opened.

//This code into the docReady eventapp.toolbar = false; // Hide the toolbarapp.menu = false; // Hide all menus

//This code into the docClose eventapp.toolbar = true; // Show the toolbarapp.menu = true; // Show all menus

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

ozsupra
Registered: May 17 2009
Posts: 22
Thanks for the suggestion.
However I inserted both sets of code in the initialise document and close document sections and they didn't appear to have any effect?

Adrian.