Answer the question
In order to leave comments, you need to log in
How to generate docx in python from a template?
Hello
There is a docx document template with a table (the table is complex and there can be a different number of rows)
I would like to create a template with my hands in which to specify the parameters that need to be filled in and create a table with one line. Then in python get that document and populate it. There are no questions with just parameters, but there are problems with the table.
I would like to be able to use the library command to duplicate a table row.
The important point is that the document must be in landscape orientation.
Do you have ready-made examples or libraries that you used to fill in?
I don’t want to fill in html, it’s just that it will be several times easier through the template.
In php and laravel this was no problem, but with python I can’t find a normal library.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question