Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Losing the style format when generating PDF

SA-17616

Summary



PDF is generated by the post activity called from a flow action, by calling pyAttachAsPDF. 
When the section Property-Set-HTML is directly referred in pyAttachAsPDF, it is not including CSS using the <style> tag.


Error Messages



No error messages.


Steps to Reproduce



1. Create a section with a label and repeat grid within a dynamic layout.


2. Give a label format for the label within the dynamic layout.

3. Generate a PDF using this section rule and observe that the style is not getting picked up for the label and the repeat grid.


Root Cause



An issue in the custom application code or rules.

Resolution



Load the CSS explicitly in section stream. 

Published January 31, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us