Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions