Overview of Word library (DocIO)
24 Jul 20261 minute to read
Essential® DocIO is a native Java Word library used to create, read, write, and convert Microsoft Word documents in Java applications without Microsoft Word or interop dependencies.
It is a non-UI component that provides a full-fledged document instance model similar to the Microsoft Office COM libraries, letting you interact with document elements explicitly and perform the necessary manipulations. It is built from scratch in Java and does not require Microsoft Word to be installed on the machine. It supports Word 2007 and later versions of Word documents.
Key Features
- Support to create Word documents from scratch.
- Support to open, modify, and save existing Word documents.
- Advanced Mail merge support with different data sources.
- Ability to create or edit Word 2007 and later documents and convert them to commonly used file formats such as WordML, TXT, and HTML, and vice versa.
- Ability to create and manipulate shapes and group shapes in DOCX and WordML format documents.
- Ability to read and write built-in and custom document properties.
- Support to insert and edit form fields.
- Ability to insert bookmarks and navigate to them to insert, replace, and delete content.
Compatible Microsoft Word Versions
- Microsoft Word 2007
- Microsoft Word 2010
- Microsoft Word 2013
- Microsoft Word 2016
- Microsoft Word 2019
- Microsoft Word 2021
- Microsoft 365
TIPS
Sometimes a Java application may throw an error like
java.lang.OutOfMemoryError. Usually, this error occurs due to insufficient RAM heap space to allocate an object in the Java heap. To avoid this kind of problem, we suggest increasing the JVM heap size.
NOTE
Currently, Essential® DocIO supports .docx, .dotx, .dotm, .docm, WordML, .rtf, .txt, and HTML. Please refer to the supported and unsupported features in Essential® DocIO.
See Also