mirror of
https://github.com/dolanmiu/docx.git
synced 2026-11-30 16:47:55 +01:00
A SEQ field's number counts the SEQ fields of its identifier before it, so it doesn't depend on the layout. With pageNumbers each is written clean with its number, counted as Word's PDF of word-seq showed, and left blank where Word's count isn't known. Footnotes, endnotes and comments have their page references and SEQ fields written clean too, the page numbers of a table of contents with seqFieldIdentifierForPrefix are left blank, and a simple field written without a result no longer throws when it is given one. Adds scripts/layout-probes/word-seq.ts, with Word's PDFs and word-seq.py.
81 KiB
81 KiB