You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docxtpl generates broken docx if some core_properties was changed before save.
If open in Microsoft Office Word 2010-2019 - error occures.
it is not error in python-docx - with it works and generates normal documents.
it works fine with docxtpl version 0.11.5, but in 0.12.0 and newer generated document is broken.
To Reproduce
installing python-docx and creating empty test document
Problem occured if open in Microsoft Office Word 2010-2019.
When open error.docx in Microsoft Office Word you see error message.
When i try to show extra properties tab in file properties I don't see keywords were set.
In libreoffice error.docx is opened without fails. Exiftools shows properly set keywords.
i compared empty.docx, success.docx and error.docx.
they difference only in docProps/core.xml file.
As you can see in error.docx<cp:keywords> dublicated and has additional xmlns:cp="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties
Expected behavior
Script above must create docx document without consistency errors.
Screenshots
Error in Microsoft Office 2010
Additional context
Python 3.10
The text was updated successfully, but these errors were encountered:
Describe the bug
docxtpl generates broken docx if some
core_properties
was changed before save.If open in Microsoft Office Word 2010-2019 - error occures.
it is not error in
python-docx
- with it works and generates normal documents.it works fine with docxtpl version 0.11.5, but in 0.12.0 and newer generated document is broken.
To Reproduce
installing
python-docx
and creating empty test documentempty.docx is opened fine and without fails or errors in Microsoft Office Word.
success
Installing properly working
docxtpl
0.11.5error
Bug occures in
docxtpl
from 0.12 to 0.16.4 and current development.Problem occured if open in Microsoft Office Word 2010-2019.
When open error.docx in Microsoft Office Word you see error message.
When i try to show extra properties tab in file properties I don't see keywords were set.
In libreoffice error.docx is opened without fails. Exiftools shows properly set keywords.
i compared empty.docx, success.docx and error.docx.
they difference only in
docProps/core.xml
file.Here i attach difference with beautified xml
As you can see in error.docx
<cp:keywords>
dublicated and has additionalxmlns:cp="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties
Expected behavior
Script above must create docx document without consistency errors.
Screenshots
Error in Microsoft Office 2010
Additional context
Python 3.10
The text was updated successfully, but these errors were encountered: