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

You Might Also Like
Our Free Plans just got better! | Auth0 by Okta Icon
Our Free Plans just got better! | Auth0 by Okta

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Try free now
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