Re: [NTG-context] total pages in external PDF

2015-02-26 Thread Pablo Rodriguez
On 02/25/2015 10:45 PM, Hans Hagen wrote: On 2/25/2015 6:41 PM, Pablo Rodriguez wrote: [...] \def\Myfilename{\env{filename}} doc = epdf.open(arg[\MyFilename]) total_pages_ = doc:getNumPages() \def\Mypages{total_pages} [...] Which is the right way to get the code above

Re: [NTG-context] total pages in external PDF

2015-02-26 Thread Pablo Rodriguez
On 02/25/2015 11:05 PM, Aditya Mahajan wrote: On Wed, 25 Feb 2015, Pablo Rodriguez wrote: I need to get the number of pages from an external PDF file that I also define with an \env. [...] From my old cut-n-paste module (to format two column pdfs into one column so that they are easier to

[NTG-context] total pages in external PDF

2015-02-25 Thread Pablo Rodriguez
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.: \def\Myfilename{\env{filename}} doc = epdf.open(arg[\MyFilename]) total_pages_ = doc:getNumPages() \def\Mypages{total_pages} But

Re: [NTG-context] total pages in external PDF

2015-02-25 Thread Hans Hagen
On 2/25/2015 6:41 PM, 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.: \def\Myfilename{\env{filename}} doc = epdf.open(arg[\MyFilename]) total_pages_ =

Re: [NTG-context] total pages in external PDF

2015-02-25 Thread Aditya Mahajan
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.: \def\Myfilename{\env{filename}} doc = epdf.open(arg[\MyFilename]) total_pages_ =