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

16 lines
392 B
TypeScript
Raw Normal View History

2018-01-24 00:01:38 +00:00
import { XmlComponent } from "file/xml-components";
import { PageSizeAttributes } from "./page-size-attributes";
export class PageSize extends XmlComponent {
constructor(width: number, height: number) {
super("w:pgSz");
this.root.push(
new PageSizeAttributes({
width: width,
height: height,
}),
);
}
}