Skip to content

Document is not preserved through load and save #8

Description

@JackNWhite

I have a barebones document to which I would like to add new sections. I am simply loading and then saving the document like so:

let template = Document::open("front_page.docx")?;
let result = template.save("translated.docx");

I have the following problems:

  • Two custom XML fields which are deliberately duplicated - on the front page and in the general footer - are not present on the front page
  • The style of tables is not preserved
  • Two tables are removed entirely and replaced with their contents as plain text
  • The tables of figures and tables lose their fields altogether and are replaced with the text of the field code, e.g. TOC \h \z \c "Figure"No table of figures entries found.

Is there a way to clear these issues up?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions