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

javascript: visible but doesn't print?

SymmetryMedical
Registered: Apr 21 2010
Posts: 26
Answered

I've figured out how to make button visible based on a certain field being digitally signed, however I'd prefer it to be made visible but not printable, now I know you can set that manually, but can you set it through javascript? I've searched and searched but can't find any reference to it.

example.display = display.visible; //is the current code I'm using and it works a treat, I'd just rather it wasn't printable if possible.

regards
Craig

My Product Information:
Acrobat Standard 9.3.1, Windows
try67
Online
Expert
Registered: Oct 30 2008
Posts: 2399
Use this:
example.display = display.noPrint;

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

SymmetryMedical
Registered: Apr 21 2010
Posts: 26
Works perfectly, thank you :)
try67
Online
Expert
Registered: Oct 30 2008
Posts: 2399
In the future you should consult the reference files. It is clearly described there.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

SymmetryMedical
Registered: Apr 21 2010
Posts: 26
Which reference files? I spent ages looking it up before I resorted to posting here so if there's somewhere to find this info easier I'd appreciate knowing where.
try67
Online
Expert
Registered: Oct 30 2008
Posts: 2399
http://www.adobe.com/devnet/acrobat/javascript.php

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

SymmetryMedical
Registered: Apr 21 2010
Posts: 26
That should help a lot, thank you again