Docx: Unable to Output Total Page Count

Created on 13 Sep 2018  路  5Comments  路  Source: dolanmiu/docx

The current API appears to only permit rendering the current page number, but no total page count number along with an optional separator.

feature request

Most helpful comment

I came here to request this feature also.

In the short term, is there some way to manually add xml (so I can add the NUMPAGES instrText myself)?

All 5 comments

Yes, this is not supported yet

Will add as a feature request

I came here to request this feature also.

In the short term, is there some way to manually add xml (so I can add the NUMPAGES instrText myself)?

This feature would be really useful to my current project.
I would appreciate if an implementation is ready soon.

Done!

https://github.com/dolanmiu/docx/pull/247

Will be released in 4.7.0 tomrrow!

Thanks all

Released!

This is a guide on how to use:

https://docx.js.org/#/usage/page-numbers

Was this page helpful?
0 / 5 - 0 ratings