We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Out-of-memory exceptions when extracting text from a large document in version 19.X

In version 19.X This code will generate a memory exception

string text = _wordDocument…GetText().

In version 22.X

there is ExtractedPages(…) method, and you can specify a tempfolder in the loadOptions, This is not available in 19.X so what do I do instead to fix the memory issue.

@tellme To extract text content from a document you can use.

_wordDocument.Save("output.txt", SaveFormat.Text);