elapouya/python-docx-template

How to change SmartArt

Asteri5m opened this issue · 0 comments

Describe your problem

output.docx
template.docx

A simple example is as follows:

from docxtpl import DocxTemplate

template = DocxTemplate('template.docx')
context = {'num1': 1, 'num2': 2, 'num3': 3, 'num4': 4, 'num5': 5}
template.render(context)
template.save('output.docx')

Its input and output are the same without any change:
image

More details about your problem

Python 3.11.4
Django 4.2.4
docxtpl 0.16.7
python-docx 1.1.0