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

21 lines
503 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 {
readonly width?: number;
readonly height?: number;
readonly orientation?: PageOrientation;
2018-01-24 00:01:38 +00:00
}
export class PageSizeAttributes extends XmlAttributeComponent<IPageSizeAttributes> {
protected readonly xmlKeys = {
2018-01-24 00:01:38 +00:00
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
};
}