- Home
- Forum
- ASP.NET Core - EJ 2
- Custom Font in HTML to PDF Converter (Blazor)
Custom Font in HTML to PDF Converter (Blazor)
Hello,
is there a way to use a custom font with the
Syncfusion.HtmlConverter.HtmlToPdfConverter
in Blazor?
How to link the resource/font file to the stylesheet i attached the html string?
With standard fonts like Arial or Verdana its working, but not with custom fonts (its only italic).
If this is possible, maybe u can prepare a demo file for me?
Thanks,
Nils
The final HTML to PDF File:
UG: https://help.syncfusion.com/file-formats/pdf/convert-html-to-pdf/webkit#html-string-to-pdf
Hello,
thanks for your fast response.
The issue still occurs:
Montserrat Thin
Montserrat Regular
The new Testproject (too big for the file upload in forums):
I attached my fonts to the testproject so u can test it (its original montserrat-thin from google fonts, and not Italic) but it is still italic...
You can open the attached fonts in the "HTMLFile"-Folder and u can see its not the italic one...
thanks,
Nils
Sample: https://www.syncfusion.com/downloads/support/forum/170398/ze/BlazorHTMLToPDF_Blink642057055
With blink it works perfectly. So I will just use Blink. Thank you for the advice and for your efforts.
Regards,
- 6 Replies
- 2 Participants
-
NS Nils Steinle
- Nov 15, 2021 03:10 PM UTC
- Nov 17, 2021 09:47 AM UTC