Hi Everyone. Any Idea how I can render HTML data f...
# advancedpdf
b
Hi Everyone. Any Idea how I can render HTML data from a custom field properly in the printed PDF? Whenever the PDF was generated it just displays the HTML code and it does not get rendered.
s
did you use a rich text field? If so, you would want to past in the </> code view instead of pasting into the WSIWYG editor. You could also use a Long Text field.
b
Hi Sean. I used a long text field. The HTML data is pulled from another customer record in which the data is entered via a rich text field.
s
@Budy Sutjijati make sure the source field has the HTML text entered via the source view.
r
check this article out about changing the output format of a value https://freemarker.apache.org/docs/ref_directive_outputformat.html one of the options is setting the output format to HTML including escape characters
b
Thanks for the tips. I have solved it. The thing was that the user copied text from Outlook and put it into the Rich text field. Apparently it included HTML as well which caused an error while rendering the PDF.