python-docx-template icon indicating copy to clipboard operation
python-docx-template copied to clipboard

Insert subdocument

Open alexmarco opened this issue 7 years ago • 3 comments

Hi, i need insert a sub-document in a template *.docx, but not created programatically (new_subdoc), readed from file, similar that Word
captura

Exist any option in docxtpl

Thanks in advance

alexmarco avatar Dec 26 '17 11:12 alexmarco

it is not possible yet, but should be possible with a little work...

elapouya avatar Dec 26 '17 17:12 elapouya

@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!

bwolfson2 avatar Apr 27 '18 18:04 bwolfson2

May be you can try this new feature :

tpl.replace_embedded('embdded_dummy.docx','embdded_docx_i_want.docx')

See documentation and examples...

elapouya avatar Apr 27 '18 19:04 elapouya