Question

8
Replies
950
Views
ArpanP12 Member since 2015 2 posts
Cognizant
Posted: October 25, 2019
Last activity: June 11, 2020
Solved

Custom font style is not applied in the generated pdf document

A custom font file is uploaded to our Pega Application as a binary file. File directory of the binary file is webwb and the extension is ttf. In the Rich Text Editor(RTE) I have added this font style and applied this style to the content of the RTE. Now when I am generating the pdf out of the content of RTE, the custom font style is not applied to the generated pdf. I am using HTMLToPDF activity for generating the pdf and passing the parameters like pdfstream, pyPDFFontsDirectory and pyPDFEmbedFont as true. PDF is generated properly but not with the desired custom font style. I have tried passing parameter of pyPDFFontsDirectory as webwb, as \webwb and even my local directory path as well like "C:\\Windows\\Fonts". None of them worked. I have gone through many community posts but could not find the desired solution. I feel there is an issue with passing the directory path. Please help!!

***Edited by Moderator Marissa to update platform capability tags****

Data Integration User Interface
Share this page LinkedIn