Extracting text with Parser stops prematurely.
This problem only seems to happen, when using GroupDocs.Total (For .NET Framework) 24.12 package.
When using GroupDocs.Parser package directly, the all text is read correctly.
This code was used to extract the text:
using (var parser = new Parser(documentPath))
{
using (TextReader reader = parser.GetText())
{
File.WriteAllText("ParserOutput.txt", reader.ReadToEnd());
}
}
This document was used for testing purposes:
https://www.un.org/en/file/111336/download?token=U6wA3CPq
But the problem seems to be a general one, as it happened also with other PDF files.
Could you please take a look?