- Home
- Forum
- ASP.NET Core - EJ 2
- Custom fonts not working on converting html to pdf
Custom fonts not working on converting html to pdf
Custom fonts are not rendering while converting html to pdf.css is rendered while fonts are not rendered in pdf generated. Is it supported to use custom fonts in pdf body while generating pdf?
Hi Abhay,
We have checked the reported issue on our end. Upon further analysis, we were able to replicate the issue, and the custom font is not rendering in the output PDF document when using our HtmlConverter library on the Windows platform. Currently, we are working on this, and we will provide further updates on January 21st, 2026.
In the meantime, we kindly request you to share your environment details, Syncfusion package name and version, .NET version, input HTML document, and complete code snippet. This will be helpful for us to analyze the issue and provide you with a prompt solution.
Regards,
Arumugam M
Thank you for your patience.
HTML to PDF converter features in .NET PDF Library | Syncfusion
//Initialize the
HTML to PDF converter. HtmlToPdfConverter
htmlConverter = new HtmlToPdfConverter(); BlinkConverterSettings
settings = new BlinkConverterSettings(); settings.Scale =
1.0f; htmlConverter.ConverterSettings
= settings; string html =
System.IO.File.ReadAllText("../../index.html"); string baseUrl =
Path.GetFullPath("../../"); //use base path to load local resources
like fonts PdfDocument document =
htmlConverter.Convert(html, baseUrl); //Save and close
the PDF document. document.Save("Output.pdf"); //Close the
document document.Close(true); |
- Modified sample or project
- Complete code snippet
- Input HTML file
- Syncfusion package name and version
- .NET Framework/.NET Core version
Regards,
Arumugam M
Attachment: HTMLtoPDFFrameworkSample_f22431b6.zip
- 2 Replies
- 2 Participants
-
AS Abhay Shekhar Yadav
- Jan 16, 2026 07:54 AM UTC
- Jan 21, 2026 12:52 PM UTC