extracting pages using luacode

I'm trying to extract pages from an existing pdf using lua. But this approach to extract pages 11 and 30 does not work: \starttext \startluacode for i, blz in ipairs({11, 30}) do context.startTEXpage() context.externalfigure("my_pdf.pdf", page=blz) context.stopTEXpage() end \stopluacode \stoptext Where am I missing the point? .F

I'm trying to extract pages from an existing pdf using lua. But this approach to extract pages 11 and 30 does not work:
\starttext \startluacode for i, blz in ipairs({11, 30}) do context.startTEXpage() context.externalfigure("my_pdf.pdf", page=blz) context.stopTEXpage() end \stopluacode \stoptext
Where am I missing the point?
On 4/25/2020 4:17 PM, Floris van Manen wrote: the syntax ... context.externalfigure( { "my_pdf.pdf" }, { page = blz } ) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Floris van Manen
-
Hans Hagen