Batch-generate Word documents and PDFs from Excel data using .docx templates.
pip install -r requirements.txtPlace input_data.xlsx in the project root and templates in templates/ (e.g. template_4.docx, template_6.docx, …).
Requires LibreOffice for PDF export.
python edit_template.pyReads the first 100 rows from input_data.xlsx, picks a template by Типоразмер (column AB), fills {{ tag }} placeholders, and writes PDFs to pdf_results/.
edit_template.py # main script
requirements.txt
templates/ # one .docx template per Типоразмер value
input_data.xlsx # local data file (not committed)
generated/ # intermediate .docx files
pdf_results/ # output PDFs