Files
docx-js/src/file/document/body/page-margin.ts

19 lines
459 B
TypeScript
Raw Normal View History

import { Attributes, XmlComponent } from "file/xml-components";
2016-03-31 23:01:20 +01:00
2016-04-09 20:16:35 +01:00
export class PageMargin extends XmlComponent {
2016-03-31 23:01:20 +01:00
constructor() {
2016-04-09 20:16:35 +01:00
super("w:pgMar");
2018-01-23 01:33:12 +00:00
this.root.push(
new Attributes({
top: "1440",
right: "1440",
bottom: "1440",
left: "1440",
header: "708",
footer: "708",
gutter: "0",
}),
);
2016-03-31 23:01:20 +01:00
}
2017-03-08 21:59:27 +00:00
}