Add total number of pages in a section

This commit is contained in:
Forman
2019-08-09 11:56:22 +03:00
parent 3263984f03
commit a9fc40dad4
5 changed files with 91 additions and 2 deletions

View File

@ -20,3 +20,11 @@ export class NumberOfPages extends XmlComponent {
this.root.push("NUMPAGES");
}
}
export class NumberOfPagesSection extends XmlComponent {
constructor() {
super("w:instrText");
this.root.push(new TextAttributes({ space: SpaceType.PRESERVE }));
this.root.push("SECTIONPAGES");
}
}