![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 2/18/2017 11:27 PM, Pablo Rodriguez wrote:
Dear list,
I have the following sample:
\setuppapersize[A8, landscape] \starttext \dorecurse{10}{ \startpagemakeup[align=center] This is invoice number \recurselevel.
Customer name from CSV file.
Other data from the same CSV file. \stoppagemakeup} \stoptext
How can I get new PDF documents with a one invoice per document instead of new page breaks?
I need PDF documents with only one invoice (but with the correct number) and also a single PDF document with all invoices.
Of course, my real documents are more complex. What I need is a file breaking command. Appending -1, -2, -3... -n to the PDF file name would be fine for me.
How could I achieve this in the ConTeXt compilation?
Many thanks for your help,
just make one invoice where you pass the variable data on the command line and then make a small lua script that loops and processes each variant Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------