We were encountering OutOfMemoryException when saving a document (generated using MailMerge). The generated document has 1350 pages, and we have a maximum heap size of 512m.
Thanks for your inquiry. SaveOptions.TempFolder specifies the folder for temporary files used when saving to a DOC or DOCX file.
In terms of memory, Aspose.Words does not
have any limitations. If you’re loading huge Word documents into
Aspose.Words’ DOM, more memory would be required. This is because during
processing, the document needs to be held wholly in memory.
Aspose.Words needs 10 times more memory than the original document size
to build it’s DOM in the memory and when it comes to rendering a
document to fixed page formats (e.g. PDF).
It would be great if you please share following detail for investigation purposes.
- Please attach your input Word document.
create a standalone/runnable simple Java application that demonstrates the code (Aspose.Words code) you used to generate
your output document
us we’ll start our investigation into your issue.
Could you please share your input document and source code that produces OutOfMemoryException exception?