Re: [NTG-context] 'figures.getinfo()' not to exit ConTeXt

2018-12-06 Thread Wolfgang Schuster
Procházka Lukáš Ing. schrieb am 06.12.18 um 11:20: Hello, I'm using the following code, mentioned here some time ago, to get some info about PDF: \startluacode figures.getinfo = function(name, page)     if type(name) == "string" then     name = { name = name, page = page }    

Re: [NTG-context] 'figures.getinfo()' not to exit ConTeXt

2018-12-06 Thread Hans van der Meer
Are you sure that data is not nil here? If so, this function returns nil. dr. Hans van der Meer > On 6 Dec 2018, at 11:20, Procházka Lukáš Ing. wrote: > > Hello, > > I'm using the following code, mentioned here some time ago, to get some info > about PDF: > > > \startluacode >

Re: [NTG-context] 'figures.getinfo()' not to exit ConTeXt

2018-12-06 Thread luigi scarso
On Thu, Dec 6, 2018 at 11:54 AM Procházka Lukáš Ing. wrote: > Hello Luigi, > > BTW: Ctx tells me "attempt to call a nil value (global 'report')" on > "report("unknown file %a",fileone)" - do I have to enable/load something? > > should be something like local report = logs.reporter("my

Re: [NTG-context] 'figures.getinfo()' not to exit ConTeXt

2018-12-06 Thread Procházka Lukáš Ing .
Hello Luigi, On Thu, 06 Dec 2018 11:23:25 +0100, luigi scarso wrote: On Thu, Dec 6, 2018 at 11:17 AM Procházka Lukáš Ing. wrote: Hello, I'm using the following code, mentioned here some time ago, to get some info about PDF: \startluacode figures.getinfo = function(name, page)

Re: [NTG-context] 'figures.getinfo()' not to exit ConTeXt

2018-12-06 Thread luigi scarso
On Thu, Dec 6, 2018 at 11:17 AM Procházka Lukáš Ing. wrote: > Hello, > > I'm using the following code, mentioned here some time ago, to get some > info about PDF: > > > \startluacode > figures.getinfo = function(name, page) > if type(name) == "string" then > name = { name =

[NTG-context] 'figures.getinfo()' not to exit ConTeXt

2018-12-06 Thread Procházka Lukáš Ing .
Hello, I'm using the following code, mentioned here some time ago, to get some info about PDF: \startluacode figures.getinfo = function(name, page) if type(name) == "string" then name = { name = name, page = page } end if name.name then local data =