Add section properties

This commit is contained in:
Dolan
2018-01-25 01:21:03 +00:00
parent 448572d7a1
commit 4339f8cfc0
7 changed files with 207 additions and 62 deletions

View File

@ -4,25 +4,13 @@ import { SectionProperties, SectionPropertiesOptions } from "./section-propertie
export class Body extends XmlComponent {
constructor(sectionPropertiesOptions?: SectionPropertiesOptions) {
super("w:body");
this.root.push(
new SectionProperties(sectionPropertiesOptions),
);
}
public push(component: XmlComponent): void {
this.root.push(component);
this.root.push(
new SectionProperties({
width: 11906,
height: 16838,
top: 1440,
right: 1440,
bottom: 1440,
left: 1440,
header: 708,
footer: 708,
gutter: 0,
space: 708,
linePitch: 360,
}),
);
}
}