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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.