Support Article
PDF generation does not work in Pega 7.1.7
SA-11419
Summary
PDF generation does not work in Pega 7.1.7 as it worked in PRPC 6.2 SP2 (before upgrade). PDF is generated successfully but the CSS/styles are missing. In PRPC 6.2 SP2, the PDFs are generated as expected.
Error Messages
Not Applicable
Steps to Reproduce
1. Create PDF generation activity using 'Property-Set-Stream' and 'call HTMLToPDF' activity steps.
2. Observe that the generated PDF does not maintain CSS or styles.
Root Cause
The root cause of this problem is a change in Pegasystems’ code/rules behavior.
Resolution
Skins and their configurations have been refactored in Pega 7 to make their application more intuitive. Pega 7 has application level skin setting and portal rules can now default to the application skin. With the presence of Operator preference skin, there has been a clear distinction made with respect to what is applied and when. Everything within the Designer Studio dynamic container (previews, harness and section design frames, flows run within the Designer Studio) get the operator preference skin. Portals and flows that run within the portals get the portal/application skin.
The designer studio and Property-Set-Streams as such directly through activities that fall into neither of the two categories would get the Designer Studio skin (this behavior was undefined earlier).
This is a changed behavior in PDF generation that the parameter 'pzUsePreferenceSkin=once' has to be set before calling ‘Property-Set-Stream’.
Published July 10, 2015 - 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.