[NTG-context] Number of pages by Lua of a figure to be inserted?

2013-04-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I need to identify number of pages by Lua of an image which is to be inserted. The image can be of all various types supported by Ctx - e.g. .png, .pdf. I've been using the following code so far (based on a mailing thread in the past): function nOfPages(fn) local fig =

Re: [NTG-context] Number of pages by Lua of a figure to be inserted?

2013-04-10 Thread Hans Hagen
On 4/10/2013 4:22 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I need to identify number of pages by Lua of an image which is to be inserted. The image can be of all various types supported by Ctx - e.g. .png, .pdf. I've been using the following code so far (based on a mailing