htmlpdfhtml-renderer

Enable UTF-8 or set custom font with TheArtOfDev's HtmlRenderer.PdfSharp


I'm using TheArtOfDev's HtmlRenderer.PdfSharp to convert an HTML string to PDF in a ASP.NET web application. The HTML contains Japanese characters. The Japanese symbols are converted to ☐ ascii characters.

How can I enable UTF-8 or use a custom Japanese font? I tried the following without results:


Solution

  • I gave up on HTMLRenderer and PDFSharp and solved all my issues with TuesPechkin, a wrapper for wkhtmltopdf.