added page break
This commit is contained in:
19
ts/docx/paragraph/page-break.ts
Normal file
19
ts/docx/paragraph/page-break.ts
Normal 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());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user