Skip to content

Feature: Support <w:view> XML tag in document import/export #2070

@caio-pizzol

Description

@caio-pizzol

Summary

Read and write the <w:view> element from word/settings.xml to support round-trip fidelity for document view settings.

Problem

The <w:view> element in word/settings.xml is not preserved during import/export. Documents that specify a view mode (e.g., print or web) lose this setting after a round-trip through SuperDoc.

Repro

  1. Open a docx with <w:view w:val="web"/> in its word/settings.xml.
  2. Export the document.
  3. Inspect the exported word/settings.xml — the <w:view> element is missing.

Expected

The <w:view> element is preserved in word/settings.xml after import/export.

Notes

OOXML spec §17.15.1.92 defines <w:view> with possible values: none, print, outline, masterPages, normal, web. This is a pure import/export change — read the value during import, store it, and write it back on export.

Attachments

image.png

web-layout.docx


Want to work on this? Check the Contributing Guide to get started. Comment on this issue to let us know you're picking it up.

Ref: SD-1548

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions