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

@ -35,8 +35,8 @@ export class SectionProperties extends XmlComponent {
};
this.root.push(new PageSize(mergedOptions.width, mergedOptions.height));
this.root.push(new PageMargin(1440, 1440, 1440, 1440, 708, 708, 0));
this.root.push(new Columns(708));
this.root.push(new DocumentGrid(308));
this.root.push(new PageMargin(mergedOptions.top, mergedOptions.right, mergedOptions.bottom, mergedOptions.left, mergedOptions.header, mergedOptions.footer, mergedOptions.gutter));
this.root.push(new Columns(mergedOptions.space));
this.root.push(new DocumentGrid(mergedOptions.linePitch));
}
}