Hi
I'm using Aspose.Pdf for exporting report to PDF. but report is in Arabic and when I download the generated PDF it's content is like "س ل م" and every word is separated, but it must be like "سلام". how can I solve this issue ?
my code for generating PDF :
public static void ExportReportToPdf(DTO.Report.Report report)
{
var pdfDocument = new Pdf();
pdfDocument.HtmlInfo.CharSet = "UTF-8";
pdfDocument.HtmlInfo.CharsetApplyingLevelOfForce = HtmlInfo.CharsetApplyingForceLevel.UseWhenImpossibleDetectFromContent;
var pdfSection = pdfDocument.Sections.Add();
pdfSection.TextInfo.FontEncoding = "UTF-8";
pdfDocument.TextInfo.FontEncoding = "UTF-8";
pdfSection.Paragraphs.Add(new Text(report.Title));
pdfSection.Paragraphs.Add(new Text(report.DateTime.ToShortDateString()));
var text = new Text(pdfSection, report.Description) {IsHtmlTagSupported = true};
pdfSection.Paragraphs.Add(text);
pdfDocument.Save(HttpContext.Current.Server.MapPath("~/Content/report/temp.pdf"));
}