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

18 lines
406 B
TypeScript
Raw Normal View History

2017-03-08 20:35:26 +00:00
import { Attributes, XmlComponent } from "../../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");
this.root.push(new Attributes({
2016-03-31 23:01:20 +01:00
top: "1440",
right: "1440",
bottom: "1440",
left: "1440",
header: "708",
footer: "708",
2017-03-08 21:59:27 +00:00
gutter: "0",
2016-03-31 23:01:20 +01:00
}));
}
2017-03-08 21:59:27 +00:00
}