JavaScript API to Handle Word Documents with React

Open Source JavaScript library to create, modify and convert Word files, add paragraphs and a list of dots to existing documents & so on.

The redocx is a useful open source library that enables software developers to create and manage word documents with react using JavaScript commands. The library provides a powerful set of components that can be used to render a React element to a Word document object with ease. You need to provide the file name and path for the document. The developers can also render the documents straight to a memory-mapped stream.

The redocx library is easy to handle and has included powerful features related to Word documents creation and rendering, such as generate new documents from the scratch, add a paragraph to existing documents, add a list of dots, add a list of numbers to word document, insert header/footer to word file, draw horizontal or vertical line, insert a table, add an image to the place of your choice and much more.

Previous Next

Getting Started with redocx

The recommended way to install redocx library is via npm. Please use the following command for a smooth installation

Install redocx via npm

 npm install --save react redocx 

Word Documents Generation via JavaScript API

Microsoft word is a leading word processing program mainly used for creating documents that are used across the globe such as letters, brochures, quizzes or tests, and so on. The redocx library enables software developers to generate new Word documents using Java. It is also easy to modify the existing document using some simple commands. You can easily add a new paragraph, images, tables, lists, and much more.

Tables Handling in Word Docs

Tables are the most important formatting element that helps Word processing users to organize their content in a better way inside their word documents. The open source redocx library has included complete support for inserting as well as managing tables using JavaScript commands. It has included several important functions for handling tables, such as, setting the width of each column, table size, align content, set borders size, insert rows and columns, use table heading and much more.

Insert Header and Footer in MS Word File

Headers and footers are handy parts of a word document that can be used to organize longer documents by holding that information that users want to appear on e page of a Word document such as author name, the document title, or page numbers, etc. The open source redocx library has provided complete functionality for inserting as well as handling custom headers and footers inside a Word document with ease. It is also possible to set multiple headers and footers for different sections of word documents.

Image Handling inside a Word File

Software developers and programmers can easily insert and modify images to the places of their choice inside MS Word documents using the open source redocx library. You need to provide the image name and the complete address. The library has included important functionality for aligning your images, setting the width and height of the image, applying styles to an image and so on.