Using the most recent version of .Net Aspose.PDF (24.5.1) we are seeing a difference between HTML and PDF where the first character in a paragraph starts. There are a couple spots where the first character of the text is overlapping the beginning of the text box.
This seems to only happen for certain characters (‘A’ and ‘T’ in this instance)
I have tried various fonts, both OTF and TTF, and have found that only TTF fonts are affected by this.
bad_first_character.zip (180.6 KB)
@ANDREA.FARRIS
Can you please also share the code snippet with which you are performing conversion so that we can log the issue accordingly?
Just the standard way to convert. You can put this html into your online Aspose.PDF HTML to PDF converter and you will see the same results.
pdf/net/conversion/html-to-pdf/
@ANDREA.FARRIS
While using the below code snippet in our environment we received attached output PDF:
Document doc = new Document(dataDir + "input_aspose.html", new HtmlLoadOptions());
doc.Save(dataDir + "output_aspose.pdf");
output_aspose.pdf (48.4 KB)
Would you kindly check it and share the screenshot where you notice the overlapping?
the “A” in Average annual total returns
the “T” in “Ten largest holdings”
The beginning of those characters are hanging off the left side of the text box with the green background
Screenshot 2024-06-07 153932.png (38.4 KB)
@ANDREA.FARRIS
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): PDFNET-57390
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.