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

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

  1. Create a correspondence rule.
  2. Apply styling (for example: font type or font size) to the correspondence rule with the rich text editor in the rule form.
  3. Use the correspondence to provide the HTML source for an activity that creates a PDF.
  4. 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

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