Closed Triplecorpse closed 5 months ago
These statistics and other metadata can only be updated by Word after saving the file. Docx-templates only edits the xml of the docx file. You need a renderer like MS Word to actually count the number of pages that the docx file produces. I dont think it is possible to count the number of pages without rendering the entire file.
Thank you for the module provided, it helps me a lot in my job. However, I would like to count number of pages in newly created document and it seems it fails to count. Here I provide the code and template. I run it with Node:
tpl.docx
My node version is:
docx-templates version:
Word statistics (4 pages):
docx-template statistics (1 page and everything else is incorrect):
Note: when I modify and save file in Word, the statistics counter begins to work as it should Note 2: the same issue happens if I make
Buffer.from(uint)
without saving file