Skip to content

Does the python-docx library not support docx documents of strict open xml created by Microsoft office? #1520

@yunnan66

Description

@yunnan66

The situation is like this. According to the introduction of the python-docx library, it can operate Microsoft Word 2007+ (.docx) files. I use python-docx to parse a docx format document created by Microsoft office with strict open xml. Will the library directly throw an exception?

"no relationship of type 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument' in collection"

I'm using python-docx version 1.1.2 under python3.8. I found some similar issues in the issue list, but I have a problem. python-docx only supports operating on docx documents with open xml. But do docx documents that do not support strict open xml? If docx documents really do not support strict open xml, what is the reason? Although I observed that the xml namespaces of the two are different

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