Aspose Word Support for Large Doc to PDF conversion

Hello

We are working on converting large doc files to PDF and we suspect that in future we might get a big file which might lead to Out of Memory error in our program which converts doc/docx file to PDF.
So, to overcome this ,we want to check if somehow we can read the doc/docx file in chunks or batches so that the whole doc/docx file content is not loaded in memory in one shot and application can process the content in small chunks or batches.
We can see inputstream being passed to Document class constructor but there still internally Aspose looks to read the whole file in one shot only.
Kindly suggest as to how we can achieve this requirement for ours.

Thanks
Rahul

@rahulgupta01,

Thanks for your inquiry. Aspose.Words does not read the document in small chunks. However, you can import big size document into Aspose.Words’ DOM.

Please note that performance and memory usage all depend on complexity and size of the documents you are generating.

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. Usually, Aspose.Words needs 10 times more memory than the original document size to build a DOM in the memory.