Skip to content

Loading from a document then saving leads to a corrupt docx file #33

@kronchusa

Description

@kronchusa

Tried with a few different docx files:


fn main() {
    let docx = DocxFile::from_file("test.docx").unwrap();
    let mut docx = docx.parse().unwrap();
    docx.write_file("test_2.docx").unwrap();
}

creates 1. A file that is much, much smaller than the original document and 2. Creates a file that is unreadable/corrupt/unusable by Microsoft Word.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions