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)