You need to sign in to do that
Don't have an account?
outputText not rendering when displayed as PDF but fine in normal page
I have a page which is being rendered as a PDF that cause the values of certain outputExt field to not be displayed. These were initially ones where I had bound to a related object. I firstly tried to change them to display the name of the related object by retrieving this information in a SOQL query however this seemed not to work so I changed it to use just simple strings.
An example field on my VF PDF page is
<apex:outputText label="Cause of Injury" escape="false" value="{!cause}" /> hello -> {!cause} - here
I have added the text below to try and locate the information on the page to see if the value was being returned. If I remove the renderAs ="pdf" part of the page then all the information displays as required. It is only when I am rendering as a pdf that this fails to work.
Any ideas?
Thanks
Paul
This'll be your method inside the extension.
Hope it helps for generating views and renderering them as pdf as once view logic is put into controller, which is not recommeneded but opens up possibilities to deal with complex edge cases when there might not be any other way as due to renderAs="pdf", Javascript takes a backseat.