Easily generate .docx files with JS/TS. Works for Node and on the Browser. You can mix and match whatever properties you want, or provide no properties. Setting the section type determines how the contents of the section will be placed relative to the previous section. You can specify additional properties to the section, by providing a properties attribute. Everything (text, images, graphs etc) in OpenXML is organized in paragraphs. To change the text alignment of a paragraph, add an AlignmentType option on the paragraph.for center, left, right or justified. When a paragraph is justified, you may want to not justify the contents of incomplete lines, which end in a soft line break. Paragraphs have .keepLines() and .keepNext() methods that allow restricting page breaks within and between paragraphs. To move to a new page, insert a page break.

Features

  • Works for Node and on the Browser
  • Easily generate .docx files with JS/TS with a nice declarative API
  • You can add properties to the Word document by specifying options
  • Change background color of Document
  • Styles, numbering and footnotes
  • Hyperlinks and background change

Project Samples

Project Activity

See All Activity >

Categories

Documentation

License

MIT License

Follow DOCX

DOCX Web Site

Other Useful Business Software
$300 in Free Credit Towards Top Cloud Services Icon
$300 in Free Credit Towards Top Cloud Services

Build VMs, containers, AI, databases, storage—all in one place.

Start your project in minutes. After credits run out, 20+ products include free monthly usage. Only pay when you're ready to scale.
Get Started
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of DOCX!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript Documentation Software

Registered

2022-03-08