Document.TaggedContent throws NullReferenceException

Hi,

we have an issue with getting TaggedContent of a document. After opening the specific document with Aspose.PDF, it throws “NullReferenceException Object reference not set to an instance of an object.” when trying to get the document.TaggedContent.

Here is the code snipped:
var path = @“D:\TaggedContentIssue\broken.pdf”;
var doc = new Aspose.Pdf.Document(path);
var taggedContent = doc.TaggedContent;

Document for which the issue occurs attached.
TaggedContentNullReferenceIssue.zip (1.8 MB)

Best regards,
Artur Jeżowski

@ARTJ,

I am investigating the issue. But just to let you know, when I checked with adobe acrobat pro, It failed with the tagged content:

So the document has incorrect tagged content, but throwing an exception is something else.

I will continue reviewing this and, if necessary, escalate and create a ticket for the dev team.

@ARTJ
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-54484

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.