20 lines
374 B
TypeScript
20 lines
374 B
TypeScript
import {XmlComponent, Attributes} from "../xml-components";
|
|
import {Run} from "../run";
|
|
|
|
class Break extends XmlComponent {
|
|
|
|
constructor() {
|
|
super("w:br");
|
|
this.root.push(new Attributes({
|
|
type: "page"
|
|
}));
|
|
}
|
|
}
|
|
|
|
export class PageBreak extends Run {
|
|
|
|
constructor() {
|
|
super();
|
|
this.root.push(new Break());
|
|
}
|
|
} |