The Docx API has included support for several important features related to working with Word documents such as creating Word documents, modifying DOCX files, add a paragraph to a word file, add and manage headers & footers, insert and edit tables, bullet and numbering support, Table of content creation, set document margins, set page size, text alignment, Manage fonts and font sizes, document sections creation and many more.
At A Glance
An overview of Docx features.
- DOCX Creation
- Add Paragraphs
- Set fonts
- Set colors
- Text alignment
- Add images
- header & footer support
- Bookmarks support
- Hyperlinks support
Docx only requires Java run-time.
Getting Started with Docx
The most recent release of officegen-DOCX can be installed directly from the online Officegen-DOCX repository by applying the following command.
Install Officegen-DOCX via npm
npm install --save docx
Manage Section of Word Docx File
Sections are subdivisions of a word document that contains its own page formatting. A section can be a collection of paragraphs that have a specific set of properties such as page size, page numbers, page orientation, headers, borders, and margins. These properties are used to describe the pages on which the text will appear. The DOCX library completely support sections creation and all the relevant properties related to a section.
Manage Tables inside a Word File
Manage Headers/Footers in Word DOCX
The open source DOCX library has included complete support for adding and managing custom headers and footers inside Word DOCX files. The library allows developers to insert tables, pictures, text, and charts into the headers and footers section with ease. The library also allows us to add multiple headers and footers by creating more sections. You easily set new headers and footers as per Section.