Document.TaggedContent throws NullReferenceException when set document language

I’m trying to set the language for a document, but when I try to get TaggedContent, I get an exception “NullReferenceException”

Code:

using (Document outputDocument = new Document(resultFileName))
document.TaggedContent?.SetLanguage(defaultLanguage.Name);
outputDocument.Save(resultFileName);

File:
from public web.pdf (767.7 KB)

@uaprogrammer

Looks like your PDF is not a valid tagged PDF document. We opened it in Adobe Reader and it was not tagged for accessibility. Read Out Loud feature didn’t work. Can you please try using a valid tagged PDF?