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

Taking a text object filled with color but print normal black & white?

Tech264
Registered: Apr 4 2008
Posts: 111
Answered

I've got a few text objects on my form (not fields) just reminders to employees not to forget to do something on the form. Right now it's a simple B&W object but now I filled it with like a bright yellow or red color. However when I print the form that text object is a shaded gray color when it comes from the printer. How do I tell LiveCycle to ignore the red/yellow color of my text objects and still print them as black & white.

Thank you.

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
1. If you using Acrobat not Reader, there is an option called "print text black" in the print dialog, that can do that for you.

2. Otherwise you can use a script in the preprint and postprint events, to change the colors.
//put this into the preprint eventthis.fontColor = "0,0,0"  //FormCalc for change font color to black

//put this into the posteprint eventthis.fontColor = "255,140,0"  //FormCalc for change font color to orange

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

Tech264
Registered: Apr 4 2008
Posts: 111
I appreciate the response however I cannot choose those events using the text object. It looks like I can only do that if it's a text field. I was trying to do it with the text tool that creates headers, etc.. the T+ tool in the object bar.
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Ok, a text object needs another solution.
Put the following scripts into the PrePrint/PostPrint events of any other form object.

//PrePrint eventText1.font.fill.color.value = "0,0,0"

//PostPrint eventText1.font.fill.color.value = "0,0,0"

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

Tech264
Registered: Apr 4 2008
Posts: 111
Hi, I put the code in a text field in the middle of form under Dates of Treatment in the first column of row 1. I'm attaching the form to see what I could be doing wrong.

You will see the red text object that I would like employees to see but when it prints, it prints as regular black & white and also not a shade of gray on a standard b&w laser printer.http://narcofreedom.com/forms/page11.pdf

Thank you

I did mention I'm doing this in LiveCycle designer 8.2

I also just realized that if I put that code on the form that means my other header that's on top of page the actual black & white one will not print B&W? Am I safe to assume that?
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hi,

I've made an example form for you.
https://share.acrobat.com/adc/document.do?docid=1f863596-c6c1-4c40-879f-2b3d14ff132f

//PrePrint eventText1.font.fill.color.value = "0,0,0" //Change color of the fontText1.border.fill.color.value = "200,200,200" //Change fill color of text object

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

Tech264
Registered: Apr 4 2008
Posts: 111
That's not quite it. Here's what I'm looking for.

In photo 1 this is what employees see when they're filling out the form.
http://narcofreedom.com/forms/page11-1.jpg

When they're done and ready to print this is out it should come out.
http://narcofreedom.com/forms/page11-2.jpg

The yellow should just be transparent.
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
The form is just an example, not a customed solution, ok?!

Because there is no transpacency setting in LCD you have to change the color to white to get a similar effect.

//PrePrint eventText1.border.fill.color.value = "255,255,255" //Change fill color of text object to white

//PostPrint eventText1.border.fill.color.value = "255,255,153" //Change fill color of text object back to bright yellow

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

Tech264
Registered: Apr 4 2008
Posts: 111
Thank you Radzmar, this worked. It didn't work at first but what I did do was change the text to a table. I typed my info into the Row, changed the background, gave the table a name within the binding and went ahead and applied your code from there.

click the link for a larger view of the photo.

[img]http://narcofreedom.com/forms/page18.jpg[/img]

http://narcofreedom.com/forms/page18.jpg