Good afternoon. Library Version 9.4.0.0
C#
string html = File.ReadAllText(Template_Path + “template.html”, Encoding.UTF8);
// instantiate Pdf object
Aspose.Pdf.Generator.Pdf pdf = new Aspose.Pdf.Generator.Pdf();
// specify the Character encoding for for HTML file
pdf.HtmlInfo.CharSet = “UTF-8”;
pdf.TextInfo.FontName = “Arial”;
pdf.HtmlInfo.CharsetApplyingLevelOfForce = Aspose.Pdf.Generator.HtmlInfo.CharsetApplyingForceLevel.UseWhenImpossibleDetectFromContent;
pdf.Title = “Название”;
// bind the source HTML
pdf.BindHTML(html, “”);
// save the PDF file
pdf.Save(OutPDF_Path + @“test.pdf”);
HTML
{KEY} Title\ Заголовок
test \ {тест} | {KEY} - test \ тест |