4

I have an issue where I have a VF page containing a long text area field. The field and data displays correctly when it's a standard VF page. I have an option to view the page as a PDF and when perform this logic the field cuts off data on the view.

Is there anything special I need to do to get this to render correctly in the PDF view? I'm using the apex:outputField to display the data on both the VF page and PDF page.

view in vf page

View as pdf

  • Take a look at this question, information here might be helpful... salesforce.stackexchange.com/questions/45422/… – Jenny B Oct 27 '14 at 16:53
  • Have you tried setting standardStyleSheets = "False"? All I ever have to use is the output field so maybe you have some other CSS causing it to not display properly – Eric Oct 27 '14 at 17:03
7

Welcome to SF.SE Bolt. <apex: outputField> is considered an unsafe component to use when rendering a PDF. See Best Practices for Rendering PDFs to learn which ones can and cannot be safely used.

  • Thank you for pointing that out for me. I didn't realize the apex:output field was unsafe to use in pdf rendering. – Jay Bolt Oct 27 '14 at 18:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.