White Text Not Staying White When Printing Or In Designer Preview

Hi,

Here is a odd one. I need to have invisible text in PDF’s. I therefore make the text white. In the designers design tab the text remains white but in Preview or Print the text reverts to black and changes back to the default point size of 10pt. The text is set to 7pt. Even the source code has the right values.

Any ideas?

<div class=“__ol__dontquery ol_selected” anchor=“page_media_0”
style=“position: absolute; -moz-box-sizing: border-box; transform: rotate(0deg); width: 200px; height: 15px; top: 140.017px; left: 51px; z-index: 999999;” offset-x=“51” offset-y=“140.01666259765625”></div>
<div id=“emailString” anchor=“page_media_0”
style=“position: absolute; overflow: hidden; -moz-box-sizing: border-box; width: 620px; height: 19px; top: 4.53333px; left: 4.53333px;” offset-x=“4.5333333015441895” offset-y=“4.5333333015441895”>
<span style=“color: White;”><span style=“font-size: 7pt;”>@emailString@<br>
</span></span>
</div>

EDIT:

And what is “__ol__dontquery ol_selected”?

I can’t reproduce the issue described if I use the above code inside a blank template. I am not sure what other settings\scripts there are in the template which could trigger the issue.

To troubleshoot this, I would start by trying this code snippet inside a brand new template. If you can’t reproduce with a new template, then there probably is another script or setting which overwrites css values at run time.Then check if there are any scripts which update the DOM and its properties at run time. If you still can’t figure this out, give the element you want to turn white an ID, then change its CSS color attribute with the css() function:

results.css({‘color’:‘white’});

Hi Rod,

In a new template with the above code the text does keep its formatting but not in the template I’m working on. What I did is add a script with a Selector #emailString. This script basically builds a string with static and variable text.

<!203849|someone@somewhere.com|EMAIL|23|10|2015|1|1|1234|7231.60|1|F|E|nil|F|nil|nil|nil!>

In a positioned box I added @emailString@ and put emailString in its ID on the attributes pane. I then made the positioned box conditional to only show when the Email field contains the character @.

In another template that I did a while back I did not use scripts to build the string I instead typed the static values and added the variable fields and that template is working fine. Except for the “<!” & “!>” characters that I put into two scripts as strings so that Connect would not parse them as code.

update the DOM and its properties at run time.???

give the element you want to turn white an ID, then change its CSS color attribute with the css() function

Can you elaborate on the above two quotes. Also note that my CSS knowledge is minimal.

Regards,

S

Hi Rod,

It is now happening to a simple flysheet on another template that contains only a address block and two text scripts. i designed this template yesterday.

DOM (Document Object Model) is a structured representation of your document in HTML. Simply said it is your document HTML source code. So I meant that there could be another script which then updates this source code and css at run time or when rendering the job in preview or print.

As for the second statement, you could simply put the text you want to turn white inside a span and then give it an id:

<div><p> some text…<span id=“toWhite”> text to turn white</span> other text </p></div>

then add a script which targets the ID (selector): #toWhite and use the css() function to turn the text to white:

results.css({‘color’:‘white’});

The css() function is part of the Designer API and you can get more information regarding this function from the following link:

http://help.objectiflune.com/EN/pres-connect-user-guide/1.5/#designer/API/css.htm

If you are still having issues getting this to work, please open a support ticket and attach your template for further investigation. The support team will need to look at how the document has been built and investigate other code and scripts as well as other css settings which may have an effect on the text you want to turn white.

That worked. Thanks again. If this continues to happen going forward I will open a support ticket.

Regards,
S

Hi Rod,

This must be a bug in PPConnect. I started using selectors because the speed difference in Profile Scripts was massive. It is the selectors that are making the text default in preview and print. If I change back to using text (@emailString@) in the script then the text remains white in preview and print. I’m assuming you work for Objectiflune since I think I read that you worked on Talk, so can you inform them of this issue if you can try to see if this happens on your side.

Regards,

S

I would be happy to escalate if you submit a support ticket with your template and advise on how to reproduce the issue.

Will do, thanks.