demo.pdf (3.5 KB)
The text has bold and italics applied, currently only bold is recognized
string inputPdfPath = "demo.pdf";
var pdfDocument = new Aspose.Pdf.Document(inputPdfPath);
foreach (Aspose.Pdf.Page page in pdfDocument.Pages)
{
var textFragmentAbsorber = new Aspose.Pdf.Text.TextFragmentAbsorber();
page.Accept(textFragmentAbsorber);
Aspose.Pdf.Text.TextFragmentCollection textFragments = textFragmentAbsorber.TextFragments;
foreach (var item in textFragments)
{
Console.WriteLine(item.TextState.FontStyle);
}
}
@78783718
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-58205
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.