UNPKG

docx

Version:

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

20 lines (19 loc) 668 B
import { TextWrappingType } from '../../../../text-wrap'; import { XmlComponent } from '../../../../../xml-components'; export declare enum VerticalAnchor { CENTER = "ctr", TOP = "t", BOTTOM = "b" } export type IBodyPropertiesOptions = { readonly wrap?: (typeof TextWrappingType)[keyof typeof TextWrappingType]; readonly verticalAnchor?: VerticalAnchor; readonly margins?: { readonly top?: number; readonly bottom?: number; readonly left?: number; readonly right?: number; }; readonly noAutoFit?: boolean; }; export declare const createBodyProperties: (options?: IBodyPropertiesOptions) => XmlComponent;