Replies: 2 comments 1 reply
-
|
I have exactly the same problem. Is this a bug or is the above code to generate page numbers in the footer wrong? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I've had success when putting them in a text run. Try this instead: footers: {
default: new Footer({
children: [
new Paragraph({
children: [
new TextRun({
children: [
PageNumber.CURRENT,
' of ',
PageNumber.TOTAL_PAGES
]
})
]
})
]
})
},Not sure if it's a bug that it doesn't work the other way, but at least this works! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I followed the readme to get page numbers, but the code above returns only a footer line saying "CURRENT of TOTAL_PAGES".
What am I doing wrong?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions