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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________