Files
docx-js/src/file/document/body/section-properties/page-size/page-size-attributes.ts

21 lines
467 B
TypeScript
Raw Normal View History

2018-01-24 00:01:38 +00:00
import { XmlAttributeComponent } from "file/xml-components";
export enum PageOrientation {
PORTRAIT = "portrait",
LANDSCAPE = "landscape",
}
2018-01-24 00:01:38 +00:00
export interface IPageSizeAttributes {
2018-01-25 01:21:03 +00:00
width?: number;
height?: number;
orientation?: PageOrientation;
2018-01-24 00:01:38 +00:00
}
export class PageSizeAttributes extends XmlAttributeComponent<IPageSizeAttributes> {
protected xmlKeys = {
width: "w:w",
height: "w:h",
2018-01-25 01:47:47 +00:00
orientation: "w:orient",
2018-01-24 00:01:38 +00:00
};
}