Support Article
Correspondence rule font styling not applied to generated PDF
SA-15846
Summary
PDF generated from correspondence rule doesn't show the font styling as intended.
Error Messages
Not Applicable
Steps to Reproduce
- Create a correspondence rule.
- Apply styling (for example: font type or font size) to the correspondence rule with the rich text editor in the rule form.
- Use the correspondence to provide the HTML source for an activity that creates a PDF.
- Generate a PDF and observe styles applied.
Root Cause
The PDF conversion library PD4ML does not recognize the styling markup generated by the rich text editor (which includes the styling inside a <span> tag as a style attribute).
Resolution
This is resolved by adding a seperate <style> tag block to the corresponce rule source.
For example:
Override the default generated styling markup:
<p><span style="font-family: segoe ui,sans-serif;"> ...
with a style block:
<style>
p{font-family: Segoe UI}
</style>
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.