Дмитрий Скачков
Results
2
comments of
Дмитрий Скачков
The file obtained as a result of the code operation opens incorrectly in different editors. You can check this by opening the file that I attached to microsoft word and...
For test I removed html2doc part of code and leave only subdoc . So problem in part: doc.new_subdoc("/path/to/document.docx") context = { 'document_text': sub_doc, } doc.render(context) doc.save("/path/tonewfile/document.docx")