mrafiqk / html-pdf-node

187 stars 119 forks source link

Added fonts feature #113

Open SanujBansal opened 3 months ago

JoseVov commented 1 month ago

@SanujBansal

I have issues loading custom fonts when exporting the PDF. Is this solving that issue? can you explain how to use it?

SanujBansal commented 2 weeks ago

@SanujBansal

I have issues loading custom fonts when exporting the PDF. Is this solving that issue? can you explain how to use it?

So, to add a specific font to use with the html-pdf-node, you can download the font's woff file from github or other sources and put in the source code. Then provide path_to_file , name of the font in the params and it's ready to use