rdvojmoc / DinkToPdf

C# .NET Core wrapper for wkhtmltopdf library that uses Webkit engine to convert HTML pages to PDF.
MIT License
1.09k stars 417 forks source link

Use a custom font family for header #135

Open ambabaei opened 3 years ago

ambabaei commented 3 years ago

Hello .

coud you please guid us , how to use a custom font family in the pdf header document . by using the information , we could be able to inject our custom font in to the body of html successfuly , now we need to use the same font in the below code , which is Arial by default

HeaderSettings = { FontName ="IRANSans" , FontSize= 9 , Right= "Test", Line = true }, in the above mentioned code , we need to use the custom IRANSans font .

many thanks ,