I am trying to display text containing HTML tags, including tag but it seems that the tag is just ignored by the system !
Even when I copy-paste the code snippet from the documentation (Superscript & Subscript), I end up with only tags being interpreted…
I attached the output file so you can see exaclty what I get.
Does it have sthing to do with evaluation license ?
Thanks for support,
Hello Erwan,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Thanks for your notification.
I have tested the issue and I’m able to reproduce the same problem. I have logged it in our issue tracking system as PDFNET-9823. We will investigate this issue in detail and will keep you updated on the status of a correction. We apologize for your inconvenience.
Thanks you for considering Aspose.Pdf.
I have fixed this problem, and the solution has been submitted to corresponding developer. Please wait for the hotfix.
The bug has been fixed in our current release. Please try the attached dll before we publish new hotfix. Thanks for your patience.
Hi, thanks for the work, unfortunately I am unable to use the provided dll hence the lack of the Text.GetLength method.
Has it been replaced by some other method ?
The method Text.GetLength has been abolished. Alternatively, you can use the following method:
/// Gets the the string width in PDF with specified text formatting.
/// The string.
/// The text formatting info.
/// The width of the string in PDF. The unit is point.
/// Pdf p = new Pdf();
/// TextInfo tf = new TextInfo();
/// tf.FontName = "Arial";
/// tf.FontSize = 14;
/// float width = p.GetStringWidth("hello world",tf);
/// Dim p As Pdf = New Pdf()
/// Dim tf As TextInfo = New TextInfo()
/// tf.FontName = "Arial"
/// tf.FontSize = 14
/// Dim width As single = p.GetStringWidth("hello world",tf)
public float GetStringWidth(string str,TextInfo info)
Thanks for the advice, with that I managed to try the new assembly
On the bright side, using tags does work now.
Unfortunately, using this new assembly breaks a lot of my page layout and brings some other problems with fonts or borders, therefore I cannot use it without reconsidering a lot of my code.
So I'll stick with using the baseline property instead, until a stable version which fixes this problem is available