civilengradil
Results
1
comments of
civilengradil
You must declare DocxTemplate prior to creating InLineImage e.g., # first creating tpl instance here **tpl** = DocxTemplate(f'C:\\Python\\template\\{templateFileName}.docx') # later the JSON entry { 'image': InlineImage(**tpl**, imageFilePath, height=Inches(3.4), width=Inches(3.4*img.width/img.height)), 'label':...