Safe DOCX posture
NUMPAGES field instruction emission
The NUMPAGES instruction follows the same emission discipline as PAGE
( NUMPAGES , preserved spacing, cached result required), giving
"Page X of Y" footers structurally correct field pairs.
Schema declarations
Bounded evidence
- source
packages/docx-core/src/generation/emit/run.ts - test
packages/docx-core/src/generation/generation-sections-fields.test.ts - source
packages/docx-compare/src/baselines/atomizer/opaquePassthrough.ts - source
packages/docx-compare/src/baselines/atomizer/ancillaryFieldSafety.ts - test
packages/docx-compare/src/baselines/atomizer/ancillaryFieldSafety.test.ts - test
packages/docx-compare/src/baselines/atomizer/documentReconstructor-complex-fields.test.ts - test
packages/docx-core/src/integration/ancillary-field-safety.test.ts