How to Develop International Language PDF Files in C# and .Net?
IronPDF supports HTML-To-PDF in non-latin script languages including: Chinese, Japanese, Arabic, Hebrew, Russian, Thai, Japanese and all international languages supported by Unicode including mixed language documents.
There are 2 things to consider when working with International languages:
A typeface that supports your character set must be installed on your server. These are normally automatically installed on modern web servers, but older servers may have been installed with older versions of some fonts such as Arial which may not have full UTF-8 Support.
An alternative solution is to specify a Web Font in your CSS such as provided by Google Fonts. https://medium.freecodecamp.org/how-to-use-google-fonts-in-your-next-web-design-project-e1ad48f1adfa
You may have to specify the input encoding of your document to render correctly. You may do this in the following ways:
Adding a HTML "Meta Charset" Tag e.g.
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"\>
- Setting The inputEncoding property of your IronPDF HML to PDF converter. Please read: https://ironpdf.com/c%23-pdf-documentation/html/F_IronPdf_PdfPrintOptions_InputEncoding.htm
IronPdf.HtmlToPdf Renderer = new IronPdf.HtmlToPdf(); Renderer.PrintOptions. InputEncoding = System.Text.Encoding.UTF8; Renderer.RenderUrlAsPdf("https://en.wikipedia.org/wiki/Arabic").SaveAs("Arabic.pdf");
Dim Renderer As IronPdf.HtmlToPdf = New IronPdf.HtmlToPdf Renderer.PrintOptions.InputEncoding = System.Text.Encoding.UTF8 Renderer.RenderUrlAsPdf("https://en.wikipedia.org/wiki/Arabic").SaveAs("Arabic.pdf")