Question

8
Replies
1452
Views
Arpan Paul (ArpanP12)
Accenture

Accenture
GB
ArpanP12 Member since 2015 2 posts
Accenture
Posted: October 25, 2019
Last activity: June 11, 2020
Posted: 25 Oct 2019 17:22 EDT
Last activity: 11 Jun 2020 8:34 EDT
Closed
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 Experience
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.