Multiple columns in a section

This commit is contained in:
Zahra
2019-06-21 01:22:27 +05:30
parent 58dc6fe389
commit 1dfc27ba08
6 changed files with 37 additions and 6 deletions

View File

@ -67,6 +67,7 @@ export class SectionProperties extends XmlComponent {
gutter = 0,
mirror = false,
space = 708,
num = 1,
linePitch = 360,
orientation = PageOrientation.PORTRAIT,
headers,
@ -88,7 +89,7 @@ export class SectionProperties extends XmlComponent {
this.options = options;
this.root.push(new PageSize(width, height, orientation));
this.root.push(new PageMargin(top, right, bottom, left, header, footer, gutter, mirror));
this.root.push(new Columns(space));
this.root.push(new Columns(space, num));
this.root.push(new DocumentGrid(linePitch));
this.addHeaders(headers);