Page number in section (#2485)

* Page number in section

* Inline Lorem Ipsum

* Re-name current page in section to current section
This commit is contained in:
Dolan
2023-12-25 22:29:32 +00:00
committed by GitHub
parent 10b87b5a70
commit 6c28f8bab0
4 changed files with 271 additions and 2 deletions

View File

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