elapouya / python-docx-template

Use a docx as a jinja2 template
GNU Lesser General Public License v2.1
2.01k stars 391 forks source link

Header field values resetting to template when saving to PDF #417

Open gabepen opened 2 years ago

gabepen commented 2 years ago

Describe your problem

I have a docx that I am filling out which includes a header. When I try to save the document as a PDF the header values reset to the template ones ( 01/01/2011 goes back to {{ DOB }} ). This only happens to header values.

elapouya commented 2 years ago

Could you provide a fully runnable exemple ?

muscarina commented 1 year ago

How are you saving it as a pdf?