Use docx2pdf to batch convert the generated .docx documents into .pdfs. In my experience, I had to run docx2pdf once, grant access to Microsoft Word, and could then run the whole batch nicely. I first moved all generated .docx to a folder to use the folder-batch from docx2pdf easily. I might turn this together into a bash script in the future.
@davidverweij -- that would be really useful. Maybe you could expand your CLI to pipe the output into docx2pdf:
poetry csv2docx <params> | poetry docx2pdf <params>
*Assuming your programme has a name change to docx-csv-mailmerge
@davidverweij -- that would be really useful. Maybe you could expand your CLI to pipe the output into
docx2pdf:*Assuming your programme has a name change to
docx-csv-mailmerge