From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Floris van Manen <vm@klankschap.nl>
Subject: Re: extracting pages using luacode
Date: Sat, 25 Apr 2020 16:56:30 +0200 [thread overview]
Message-ID: <e12c932a-8302-c8ce-00ea-a840c169a65e@xs4all.nl> (raw)
In-Reply-To: <492d71e4-30ff-0b8d-7702-8c053bb6497f@klankschap.nl>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2020-04-25 14:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-25 14:17 Floris van Manen
2020-04-25 14:56 ` Hans Hagen [this message]
2020-04-25 15:11 ` Floris van Manen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e12c932a-8302-c8ce-00ea-a840c169a65e@xs4all.nl \
--to=j.hagen@xs4all.nl \
--cc=ntg-context@ntg.nl \
--cc=vm@klankschap.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).