Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

Add support to docm files #94

Open
EmanueleCannizzaro opened this issue Aug 29, 2021 · 0 comments
Open

Add support to docm files #94

EmanueleCannizzaro opened this issue Aug 29, 2021 · 0 comments

Comments

@EmanueleCannizzaro
Copy link

Expected Behavior

It seems that a very small change to the main python file can allow the script to deal with macro enabled word file format.

Current Behavior

Today the .docm file are not usable.

Possible Solution

It consists of
...
CONTENT_TYPES_PARTS = (
'application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml',
'application/vnd.ms-word.document.macroEnabled.main+xml',
'application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml',
'application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml',
)
...

Initial tests suggest that change is sufficient to get most of the tests to process .docm files.

Steps to Reproduce (for bugs)

Context

I saved the projects docx files as .docm and tested the impact of the modification.

Your Environment

  • Python version:
  • docx-mailmerge version:
    latest git version
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant