IncorrectFontUsageException

Getting an IncorrectFontUsageException (Document error: TJ operator without preceding Tf - no font set for the text segment) thrown when using page.Accept(TextAbsorber).

To reproduce, run the following code on the attached anthropic.pdf.zip (5.6 MB)
:

protected List<IText> GetTexts(Document pdfDocument, CancellationToken cancellationToken)
{
	List<IText> list = new List<IText>();
	int num = 1;
	foreach (Page page in pdfDocument.Pages)
	{
		cancellationToken.ThrowIfCancellationRequested();
		TextAbsorber textAbsorber = new TextAbsorber();
		page.Accept(textAbsorber);
		string text = textAbsorber.Text;
		list.Add(new Text(num, text.Trim()));
		num++;
	}
	return list;
}

@Buffer2018

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-61825

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.