Rendering font from HTML to PDF

Posted by mysteryminds on 01-Nov-2017 14:50

I have an issue rending the HTML template to PDF.

We are using Calligraphy Font  in some specific locations of the Template.. When we view in the HTML format everything looks normal but when we are rending it to PDF the whole text converts to ARIAL / TIMES NEW ROMAN.

I have also tried using windows based Vivaldi font - Still same issue 
Used Google Font Online  - Still same issue  

So can you please let me know how i can render the font to PDF and it is very important to have the different font in the section.

We are on PRIVATE CLOUD so kindly guide us to solve the issue

All Replies

Posted by Manooj Murali on 02-Nov-2017 08:39

Have you configured PD4ML as described here

Posted by spindipr on 03-Nov-2017 05:01

Hi mysteryminds,

I am able to reproduce the issue with the windows based Vivaldi font.

Looks like an issue from PD4ML. I have logged a rollbase issue - #82727



Posted by Manooj Murali on 09-Nov-2017 05:24

As part of your template you need to specify the correct font-family css on the html element.

For example:



html body

{font-family: Vivaldi, Vivaldi Italic; }



I am testing Vivaldi Italic font type



Now, as you can see I have provided "Vivaldi" and "Vivaldi Italic". This is needed because the browser fonts goes by the name "Vivaldi" but the Windows fonts folder has the same fonts under the name "Vivaldi Italic". The view template option on the document template makes use of the browser fonts as its a client -side rendering. The preview option generates the document on the server side and hence requires the name of the font as in the fonts folder. So, please make sure that you have provided the correct font family name and the same is available in your fonts folder.

Also, please make sure that you run the PD4ML TTF configuration command as explained here

Posted by on 28-Jan-2018 02:52


We have the same issue BUT we are on a Public Cloud.

Can w have control on the fonts??



Posted by on 04-Feb-2018 05:34

Anyone know?


Posted by Anoop Premachandran on 07-Feb-2018 02:28

We are adding few more fonts to the public cloud as part of this Saturday update

This thread is closed