Parser extracts text only partially when using GroupDocs.Total in .NET

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?

@Clemens_Pestuka

I can reproduce this issue. The code executes without errors but output contains only some part of the document. I’ll analyze this issue and update you.

1 Like

@Clemens_Pestuka

This issue was fixed in GroupDocs.Total for .NET 25.1 release.

The packages are available at nuget.org and https://releases.groupdocs.com/total/net/.

Have a nice day!

1 Like

@vladimir.litvinchik

Thanks a lot for providing the fix!
I can confirm that all text is extracted correctly now :+1:

@Clemens_Pestuka

Thanks for the feedback!