docx
Version:
Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.
14 lines (13 loc) • 620 B
TypeScript
import { XmlComponent } from '../../../../xml-components';
import { PositiveUniversalMeasure } from '../../../../../util/values';
export declare const PageOrientation: {
readonly PORTRAIT: "portrait";
readonly LANDSCAPE: "landscape";
};
export type IPageSizeAttributes = {
readonly width: number | PositiveUniversalMeasure;
readonly height: number | PositiveUniversalMeasure;
readonly orientation?: (typeof PageOrientation)[keyof typeof PageOrientation];
readonly code?: number;
};
export declare const createPageSize: ({ width, height, orientation, code }: IPageSizeAttributes) => XmlComponent;