-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docm support #195
Comments
Hi @brockfanning , Interesting, I've never used docm files before. This library unzips the .docx file and tries to find the path to the .docx
.docm
So the first step of any attempt to extend this library with docm support would be to refactor the below function to work with docm-derived Lines 409 to 424 in 10b6e16
That would be step 1, I think. I don't know whether there are other major differences in structure between the two file formats, so there may be other more serious blockers before docm can be supported. |
@brockfanning thanks for contributing! Looks great. I've merged your PR and added a commit on top to please the typechecker (743a552) and another one with a test case (29af430). |
Great! 👍 |
Hello, I need to create Word docs from a template that is a docm (not docx) file. When I try with a particular docm file I get:
Error: Could not find main document (e.g. document.xml) in [Content_Types].xml
If I use a docx file I don't get that problem, so I suspect that docm files are not supported. I was just wondering if anyone knew of a work-around for getting a docm file to work as a template. I will dive into the code and see what I can do, but also wanted to get feedback from the experts.
The text was updated successfully, but these errors were encountered: