Discussion

78
Views
Close popover
Antonio Paladino (palaa1)
PEGA
Senior System Architect
Pegasystems Inc.
GB
palaa1 Member since 2019 2 posts
PEGA
Posted: August 28, 2020
Last activity: August 28, 2020

How to generate PDF documents using custom fonts

How to use custom fonts in Pega paragraph rules and activity for generating PDF

I found quite time consuming to install custom fonts and use those for generating a pdf document through the HtmlToPdf activity, therefore I decided to share the steps for achieving that. The solution has been tested on Pega 8.1 which uses P4DML version 3100.PRPC1 Pro.

The high levels steps are:

  • Enable logging by setting the PdfUtilImpl logger to DEBUG
  • Install custom fonts
  • Define CCS stylesheet
  • Create an HTML rule to be passed to the HtmlToPDF activity for rendering the Html stream
  • Set Dynamic System Settings for Fonts and Props folders [optional]
  • Create a test activity to generate the PDF document through the HtmlToPDF OOB activity

Detailed instructions are described in the attached document. Hope you find it useful.

 

***Edited by Moderator Marissa to change Type from General to Product; update Platform Capability tags; add Developer Knowledge Share tag****

Pega Platform 8.1 Data Integration Developer Knowledge Share