Hi
Hi Mohammad Reza,.
the sake of correction, I have logged it in our issue tracking system as PDFNEWNET-37065. We will
investigate this issue in details and will keep you updated on the status of a
correction. We
apologize for your inconvenience.
var pdfDocument = new Pdf();<o:p></o:p>
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("سلام"){ IsHtmlTagSupported = false };
text.TextInfo.IsRightToLeft = true;
// set font as Arial Unicode MS as it supports Non-English characters
text.TextInfo.FontName = "Arial Unicode MS";
pdfSection.Paragraphs.Add(text);
// embed unicode font subset in PDF
pdfDocument.SetUnicode();
pdfDocument.Save("c:/pdftest/Arabic_Persian_test.pdf");
Thank you, I have done as you said but the problem still exist :((
ipazooki:Thank you, I have done as you said but the problem still exist :((When IsHtmlTagSupported = true then all text content will be separated but when it is FALSE then content is like usual and correct !
The issues you have found earlier (filed as PDFNEWNET-37065) have been fixed in Aspose.Pdf for .NET 9.6.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
Hi Mohammad,
string outFile = “37065.pdf”;<o:p></o:p>
Document doc = new Document();
Page page = doc.Pages.Add();
TextFragment text = new TextFragment("سلام");
text.TextState.Font = FontRepository.FindFont("Arial Unicode MS");
page.Paragraphs.Add(text);
doc.Save(outFile);
Please feel free to contact us for any further assistance.
Best Regards,