# UnifiedWriter v5.34.0 - DOCX Review / Header-Footer / Round-trip Foundation

## Scope

v5.34.0 extends the v5.33.0 OOXML-first DOCX export foundation with the first review and document-part mappings:

- Header/footer metadata dialog
- Footer page-number field export
- Footnote insertion and `word/footnotes.xml` export
- Comment range export to `word/comments.xml`
- DOCX import of comments, footnotes and header/footer metadata at a basic level
- UWPSX persistence for `headerFooter`, `footnotes`, and preserved OOXML package metadata

## Design intent

UnifiedWriter remains Model-first. Header/footer content, comments and footnotes are document metadata, not normal body paragraphs. The renderer may show lightweight markers in the body, but DOCX export writes separate package parts where Word expects them.

```text
DocumentModel / current document record
  headerFooter
  comments
  footnotes
  ooxmlParts
        ↓
OOXML exporter
  word/header1.xml
  word/footer1.xml
  word/comments.xml
  word/footnotes.xml
  document.xml references
```

## Current limitations

This build is not a full Word round-trip engine yet. The preserved OOXML area is a foundation for future work; complex charts, SmartArt, embedded objects and revision tracking are stored as metadata where possible but are not fully re-emitted into a perfect original package.

## Next recommended work

- Header/footer visible editing surface
- Footnote/endnote side panel and renumbering UI
- DOCX comments import with precise range reconstruction for complex nested ranges
- Unknown OOXML relationship graph preservation
- DOCX Export Level 4 for comments, footnotes, header/footer, bookmarks and fields
