+ Start a Discussion
John NeffJohn Neff 

Text color not rendering in PDF attachment - help!

Good Evening, 

I have a Visualforce email template with a PDF attachment and there is some text that is conditionally displayed.  Depending on a field value, one of two values are displayed... and one of the values is/should be RED. 

This is working fine on the VF page, but not on the corresponding attachment.  Is there a way that I can make my text turn red?

Here is my code:

<apex:outputPanel rendered="{!If(relatedTo.Revision__c <>'TRUE',true,false)}">
<apex:outputPanel rendered="{!If(relatedTo.Revision__c ='TRUE',true,false)}">
<h2><font color="#FF0000">REVISED ORDER/TRAFFIC INSTRUCTIONS</font></h2>
Thank you in advance for your help!

Using visualforce inline styling tags, check the below sample
<apex:outputLabel style="color: #FF0000;align: center;">REVISED ORDER/TRAFFIC INSTRUCTIONS</apex:outputLabel>

John NeffJohn Neff
Thanks Karanaj, I tried this but it is still rendering as black in the PDF