Articles in this section
Category / Section

Why does an out of memory exception occur when processing large Word documents in WPF DocIO?

2 mins read

Essential DocIO keeps the entire document contents (paragraphs, images, tables, and all other supported items along with the formatting) in main memory. Some documents may seem to have very few contents, but Essential DocIO uses more memory due to the rich set of formatting applied to the contents. In the case of opening a Docx file, you may think the file size is small, but Essential WPF DocIO utilizes very large memory. Whereas it is a zip archive file with the extension "docx," Essential DocIO internally decompresses it and populates the content in the document object model, utilizing remarkable main memory. The main memory utilized by an instance will not be released until the instance is removed from the document.

Hence, there is a chance for an "Out of memory exception" when the memory utilization exceeds the maximum level as the content of the document increases. Kindly split the contents into several documents or use high-configuration machines with extended RAM to create or open large-size documents comfortably.

Conclusion

I hope you enjoyed learning about why out-of-memory issues arise when processing large documents in WPF DocIO.

You can refer to our WPF FileFormat Featuretour page to learn about its other groundbreaking features and documentation, and how to quickly get started with configuration specifications. You can also explore our WPF FileFormat libraries example to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to explore our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied