我想合并两个word文档,但是生成的新文档为空白。 谁可以帮助我
from docxtpl import DocxTemplate, Document
tpl = DocxTemplate(r"C:\Users\huangcc\Desktop\test1.docx")
sub = tpl.new_subdoc()
sub.subdocx = Document(r"C:\Users\huangcc\Desktop\1234567.docx")
output_data = {'f2': sub}
tpl.render(output_data)
tpl.save(r'C:\Users\huangcc\Desktop\ttt3.docx')