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
- Create a section with RTE and fill in some text.
- Use Create PDF smart shape in the flow with the section name as input.
- 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:
- Include one more assignment, which references the new flow action and section.
- Include richTextDisplay control with RTE property in the section created.
- 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 28, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.