Support Article

Create PDF Utility does not render RTE in PDF

SA-25908

Summary



Create PDF smart shape in the flow does not render the content of Rich Text Editor (RTE) correctly in the generated PDF document.

Error Messages



Not Applicable

Steps to Reproduce

  1. Create a section with RTE and fill in some text.
  2. Use Create PDF smart shape in the flow with the section name as input.
  3. Generate the PDF document and check the contents of RTE in it.

Root Cause



The generated PDF contains the RTE content in hidden mode.

Resolution



Perform the following local-change:
  1. Include one more assignment, which references the new flow action and section.
  2. Include richTextDisplay control with RTE property in the section created.
  3. Add Create PDF smart shape in the flow.

The PDF will pick all the styles applied to the RTE content and displays the same in the generated PDF document, which is attached to work object.

Include the following in userworkform:

</style>
#rte-default textarea { 
      visibility : visible !important
}
</style>

Or

Use htmlToPdf activity providing the RTE property as a parameter stream.

Published July 22, 2016 - Updated July 28, 2016

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.