Код: Выделить всё
tpl = DocxTemplate((path.join('report','templates','my_template.docx')))
tpl.new_subdoc()
file_path = path.join(output_dir_name, file_name)
get_all_data_report(tpl)
tpl.save(file_path)enter code here
Если я помещаю некоторый текст в шаблон в начале страницы, он иногда перемещается и добавляет x пробелов в строках.
Подробнее здесь: https://stackoverflow.com/questions/556 ... x-template
Мобильная версия