B
B
bubaley2020-06-22 11:19:29
Python
bubaley, 2020-06-22 11:19:29

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

2 answer(s)
L
Larisa .•º, 2020-06-22
@bubaley

python-docx-template

V
Vadim, 2020-06-22
@Viji

python-docs and https://stackoverflow.com/questions/34519746/using...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question