Could you please give me a sample code to create the following inline text in Aspose.Pdf (not generator API)?
Hi Anil,
Thanks for contacting support.
In order to render Superscript text using the new DOM approach, please try using the HtmlFragment instance. Please take a look at the following code snippet. For your reference, I have also attached the resultant PDF generated on my end.
[C#]
Document doc = new Document();
doc.Pages.Add();
HtmlFragment html = new HtmlFragment("<p>XYZOW<sup>®</sup>Financial Report</p>");
doc.Pages[1].Paragraphs.Add(html);
doc.Save("c:/pdftest/SuperScript_Text.pdf");
TEST®TEST
";Hi Anil,
Thanks for your inquiry. I have tested your scenario with Aspose.Pdf for .NET 10.3.0 and unable to notice any issue. Please download and try latest version of Aspose.Pdf for .NET, if issue persist then please share some more details, so we will look into it and guide you accordingly.
Document doc = new Document();
doc.Pages.Add();
HtmlFragment html = new HtmlFragment("<p style=\"font-family: 'Helvetica LT Condensed Medium';font-size:18pt;font-weight: bold;\">TEST<sup>®</sup>TEST</p>");
doc.Pages[1].Paragraphs.Add(html);
doc.Save(myDir + "SuperScript_Text.pdf");
Please free to contact us for any further assistance.
Best Regards,
TEST®TEST
";TEST®TEST
";Hi,
Thanks for sharing the details.
I have tested the scenario and I am able to reproduce the same problem that SuperScript is not being honored when using custom fonts (fonts other than Arial, Times New Roman). For the sake of correction, I have logged it in our issue tracking system as PDFNEWNET-38527. We will investigate this issue in detail and will keep you updated on the status of a correction.
We apologize for your inconvenience.
The issues you have found earlier (filed as PDFNET-38527) have been fixed in Aspose.PDF for .NET 18.11.