added page break

This commit is contained in:
Dolan Miu
2016-03-30 00:28:05 +01:00
parent e04d9e0c97
commit 099da3d90c
8 changed files with 74 additions and 30 deletions

View File

@ -0,0 +1,19 @@
import {XmlComponent, Attributes, Run} from "../xml-components";
class Break implements XmlComponent {
private br: Array<XmlComponent>;
constructor() {
this.br = new Array<XmlComponent>();
this.br.push(new Attributes({
type: "page"
}))
}
}
export class PageBreak extends Run {
constructor() {
super();
this.r.push(new Break());
}
}