Expand my Community achievements bar.

Visible (Screen only) showing on printed form

Avatar

Level 1

Hi,

I'm using Adobe Livecycle Designer ES 8.2 to create dynamic pdf forms. These forms have a background colour that ought to only appear when viewed on the screen, and when printed they shouldn't appear (to save on needless ink). However, this does not happen. I have tried just selecting the object in the master page and setting that to Visible (Screen only) and I have also tried wrapping it in a sub-form to which I set the same presence value. Both times, the coloured rectangle appeared.

Could someone please tell me where I'm going wrong?

Thanks.

2 Replies

Avatar

Level 10

Try using the relevant property of the control in the initialize event.

          ControlName.relevant = "-print"; // Forces an object not to appear when the form is printed, regardless of the object’s presence property setting

If you are using a reactangle to provide the background for the PDF then the above event will not be available. Instead convert the rectangle to Subform and set the fill color of the Subform.

     If you still have issues you can post the file..

Thanks

Srini

Avatar

Former Community Member

Hi,

I would put ObjectName.presence="hidden"; under the prePrint Event of your object and ObjectName.presence="visible"; under the postPrint Event.

Both scripts are JavaScript. Good luck!

Kyle