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

Free Support Forum - aspose.com

Stream word document conversion without memory load

Is there a way to convert doc FileStream to pdf filestream without loading the entire document into memory?

I have to deal with conversion up to 500MB documents. I’ve tried to use new Document(fileStream) but it looks like it still loads the entire document into memory during this call.

Also it looks like the document still remain in memory after conversion and saving using “Save(Stream stream, SaveOptions saveOptions)” method. Is there any way to dispose the Document object?


You need to pass the complete stream into Aspose.Words.Document. Aspose.Words does not import partial stream into its DOM.

You do not need to dispose any DOM object. When the document is closed, all the DOM data is purged from memory during the next garbage collector cycle. The memory may not be released until you close the application.

Hope this answers your queries. Please let us know if you have any more queries.