python-docx-template
python-docx-template copied to clipboard
Insert subdocument
Hi, i need insert a sub-document in a template *.docx
, but not created programatically (new_subdoc
), readed from file, similar that Word
Exist any option in docxtpl
Thanks in advance
it is not possible yet, but should be possible with a little work...
@elapouya I just wanted to follow up on this request you list the code here: https://github.com/elapouya/python-docx-template/issues/40, but I cannot figure out how to combine it into an extension and run it. You're help would be greatly appreciated!
May be you can try this new feature :
tpl.replace_embedded('embdded_dummy.docx','embdded_docx_i_want.docx')
See documentation and examples...