Re: [NTG-context] extracting pages using luacode
On 25-04-2020 16:56, Hans Hagen wrote: >> >> Where am I missing the point? > the syntax ... > > context.externalfigure( { "my_pdf.pdf" }, { page = blz } ) so simple :-) Thanks! .F pEpkey.asc Description: application/pgp-keys ___ 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 ___
Re: [NTG-context] extracting pages using luacode
On 4/25/2020 4:17 PM, Floris van Manen wrote: 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? 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 - ___ 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 ___
[NTG-context] 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 pEpkey.asc Description: application/pgp-keys ___ 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 ___