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

2
  • Take a look at this question, information here might be helpful... salesforce.stackexchange.com/questions/45422/…
    – Jenny B
    Commented Oct 27, 2014 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
    Commented Oct 27, 2014 at 17:03

1 Answer 1

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.

1
  • 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
    Commented Oct 27, 2014 at 18:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .