[NTG-context] Best way to create a large number of documents from database
Mojca Miklavec
mojca.miklavec.lists at gmail.com
Thu Apr 16 11:12:39 CEST 2020
Hi,
I have been asked to create a few thousand PDF documents from a CSV
"database" today (which I can easily transform into any other form,
like XML or a lua table or TeX definitions or whatever).
Generating a few thousand pages would be straightforward, but I'm sure
there are some clever ways to handle this scenario as well, I'm just
not aware of them :)
One option is that I quickly draft a python script that creates a few
thousand TeX documents and compiles them individually, but it might be
easier if there was a way to just create a single template document
and then run something like
context --some-params --N=42 --output=document-0042.pdf template.tex
or something along those lines.
What's the best approach with the existing functionality? I would be
more than grateful for any hints.
Thank you very much,
Mojca
More information about the ntg-context
mailing list