2018-01-24 00:01:38 +00:00
|
|
|
import { XmlAttributeComponent } from "file/xml-components";
|
|
|
|
|
2018-06-21 12:03:34 +02:00
|
|
|
export enum PageOrientation {
|
|
|
|
PORTRAIT = "portrait",
|
|
|
|
LANDSCAPE = "landscape",
|
|
|
|
}
|
|
|
|
|
2018-01-24 00:01:38 +00:00
|
|
|
export interface IPageSizeAttributes {
|
2018-11-02 02:51:57 +00:00
|
|
|
readonly width?: number;
|
|
|
|
readonly height?: number;
|
|
|
|
readonly orientation?: PageOrientation;
|
2018-01-24 00:01:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export class PageSizeAttributes extends XmlAttributeComponent<IPageSizeAttributes> {
|
2018-11-02 02:51:57 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|