What you can do
- Edit a document with an Office.js API.
WordDocumentfollows the Word JavaScript API (Word.Document,Paragraph,Range,Table…). Edits apply at once: there is noWord.run,loadorsync. - Convert .docx to PDF or PNG. The layout engine is measured against Microsoft Word, page by page.
- Redline. Make tracked changes and comments, accept or reject them, and compare two documents like Word’s Compare.
- Show and edit documents in a page. Use one call for a full editor UI, or build your own UI on the canvas renderer.
The packages
Entry points
@reductoai/docx has one entry point for each runtime. Use the correct one: the Node entry point reads files and loads native modules, so a browser bundle must not import it.
Where to go next
- New to the library: Installation, then Office.js in Node.
- You only need a PDF: PDF.
- You review contracts: Redlining.
- You need a UI: Choose a UI layer.
- You look up a member: the API reference.
- You come from 0.0.x: Migrate to 0.1.0.