17.2.0 release and WORDSNET-6833 fix (OutOfMemoryException occurs during rendering DOCX to PDF)

Are there any details of what this fix actually does? Is the total memory usage reduced, or some disc-paging system implemented?

If we were getting out of memory errors, are we now less likely to?

Thanks.

Hi Nick,

Thanks for your inquiry. When dealing with very large and complex documents Aspose.Words sometimes had problems during saving resulting in out of memory exceptions, disk swapping and generally failures.

We have introduced an option (SaveOptions.MemoryOptimization) to optimize memory consumption during these scenarios. When its value is set to true it will improve document memory footprint but will add extra time to processing. This optimization is only applied during save operation.

Please check the following code example.

Document doc = new Document(MyDir + "in.docx");

PdfSaveOptions options = new PdfSaveOptions();
options.MemoryOptimization = true;

doc.Save(MyDir + "Out v17.2.0.pdf", options);