16 lines
392 B
TypeScript
16 lines
392 B
TypeScript
![]() |
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,
|
||
|
}),
|
||
|
);
|
||
|
}
|
||
|
}
|