We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
First of all, thank you for your work!
Install
pip install docxcompose==1.3.4
Install WPS Office
Generate a Document
Insert a Text Box, and save as 1.docx
Code
from docx import Document from docxcompose.composer import Composer composer = Composer(Document()) composer.append(Document('1.docx')) composer.save('result.docx')
It cause
Traceback (most recent call last): File "D:/mycode/test/1.py", line 5, in <module> composer.append(Document('1.docx')) File "C:\Users\Administrator\Envs\test\lib\site-packages\docxcompose\composer.py", line 51, in append self.insert(index, doc, remove_property_fields=remove_property_fields) File "C:\Users\Administrator\Envs\test\lib\site-packages\docxcompose\composer.py", line 76, in insert self.add_shapes(doc, element) File "C:\Users\Administrator\Envs\test\lib\site-packages\docxcompose\composer.py", line 190, in add_shapes img_part = doc.part.rels[rid].target_part KeyError: None
Looking forward to your reply!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
First of all, thank you for your work!
Install
Install WPS Office
Generate a Document
Insert a Text Box, and save as 1.docx
Code
It cause
Looking forward to your reply!
The text was updated successfully, but these errors were encountered: