[NTG-context] total pages in external PDF
adityam at umich.edu
Wed Feb 25 23:05:01 CET 2015
On Wed, 25 Feb 2015, Pablo Rodriguez wrote:
> Dear list,
> I need to get the number of pages from an external PDF file that I also
> define with an \env.
> I think I could get something like this.:
> doc = epdf.open(arg[\MyFilename])
> total_pages_ = doc:getNumPages()
> But mixing both lua and ConTeXt commands the wrong way won’t work.
> Sorry, but this is all Greek to me. Although I see how it could be done,
> I cannot write the code for this.
> Which is the right way to get the code above working?
From my old cut-n-paste module (to format two column pdfs into one column
so that they are easier to read on an eink reader)
\useexternalfigure[cnp:name][\cut!n!paste!parameter\c!name]% Is this really needed?
More information about the ntg-context