Forum Discussion
Storyline 360 - Generating a PDF Certificate using JavaScript
I have replaced the default Roboto font with my preferred font and it worked for me. Did you update the 'pdfmake.js' file as well?
Do you try to have multiple fonts in the PDF or just change the default font? I haven't had multiple fonts in "vfs_fonts.js" file but replacing the font worked for me.
Thanks, I did not try to replace it, I do have two fonts I need to use, so I added them to the vfs file. I know Roboto is listed as default in pdfmake.js, but I did not make a change there. Thank you for responding.
- SanduniFernando5 years agoCommunity Member
Though I haven't used multiple fonts, the following links may be useful:
https://pdfmake.github.io/docs/fonts/custom-fonts-client-side/
https://github.com/bpampuch/pdfmake/issues/673
I think you have to update"pdfmake.js" as well. Make sure to include this in index.html file as the "pdfmake.min.js" is called in the default file.
- JeffForrer5 years agoCommunity Member
Thank you I have played around with these but have not had luck yet ;0( I was trying to do this without installing gulp etc., others seem to have had success, but I have not had luck yet with those methods. I might have to install gulp and go that direction.