UNPKG

docx

Version:

Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.

10 lines (8 loc) 375 B
import { IParagraphStylePropertiesOptions, ParagraphProperties } from "file/paragraph/properties"; import { XmlComponent } from "file/xml-components"; export class ParagraphPropertiesDefaults extends XmlComponent { constructor(options?: IParagraphStylePropertiesOptions) { super("w:pPrDefault"); this.root.push(new ParagraphProperties(options)); } }