How to apply custom fonts to HTML so that it will reflect on PDFs

Hi, I'm using the HTML to PDF step to create PDFs with my HTML text. I want to apply custom fonts to it so that the PDFs are more aesthetically pleasing. Is this possible within Decisions?

Comments

  • Yes, this is possible by using CSS that references the font's TFF file, which you will need to place in the C:\Program Files\Decisions\FileStorage\Primary\styles\css\CssDocuments folder. 

    Follow the steps in this documentation link to achieve this: Uploading Custom Fonts with CSS

    Once that is done, you will need to apply the CSS to your HTML text before using the HTML to PDF step. You can do this by referencing the CSS document within the HTML text, which should look something like this:

    <link rel="stylesheet" href="custom font.css"> <!-- Reference to your CSS file name -->

    Once that's finished, you'll see the font applied to the new PDF file. Let me know if you have any issues with this. 

Sign In or Register to comment.