Support Article
Generated PDF not able to use the Pega CSS
SA-21574
Summary
On using the out of the box activity HTMLToPDF and passing the Perform harness as the HTML stream using the Property-Set-Stream method, the generated PDF does not show the styling and formatting as per CSS.
Error Messages
Not Applicable
Steps to Reproduce
- Convert the perform harness into a stream.
- Pass this stream to HTMLToPDF.
- Attach the generated PDF to the case.
- Open the attached PDF.
Root Cause
There is a limitation of the underlying PD4ML APIs which are used to generate the PDF document. It does not support some of the advanced CSS version 3 features of Pega sections
Resolution
For proper alignment then use the "Free Form Layouts" instead of Dynamic layouts in this scenario.
Published April 1, 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.