Re: [NTG-context] Pdf info with Lua/Ctx API

2017-08-16 Thread Wolfgang Schuster
Procházka Lukáš Ing. 16. August 2017 um 12:11 Hello Hans, thank you for implementation 'figures.getinfo()'; two points: 1. Code: \startluacode local n = "x:/Users/MMi/Akce/I-6_Krusovice.DSP-ZDS/Admin/Jednani/2017-07-07-SU-Rakovnik/ZJ.pdf" local d = figures.ge

Re: [NTG-context] Pdf info with Lua/Ctx API

2017-08-16 Thread Procházka Lukáš Ing .
Hello Hans, thank you for implementation 'figures.getinfo()'; two points: 1. Code: \startluacode local n = "x:/Users/MMi/Akce/I-6_Krusovice.DSP-ZDS/Admin/Jednani/2017-07-07-SU-Rakovnik/ZJ.pdf" local d = figures.getinfo(n) ... prints (probably to-string converted) resulting table:

Re: [NTG-context] Pdf info with Lua/Ctx API

2017-08-15 Thread Procházka Lukáš Ing .
Hello Hans, that's exactly what I've been looking for! (And yes, I've asked one or more times, with a solution that seemed to me a bit "forced" or "non-clear", so the latest solution looks perfectly!) Best regards, Lukas On Mon, 14 Aug 2017 16:55:09 +0200, Hans Hagen wrote: On 8/14/2017

Re: [NTG-context] Pdf info with Lua/Ctx API

2017-08-14 Thread Hans Hagen
On 8/14/2017 1:08 PM, Procházka Lukáš Ing. wrote: Hello, is there a way how to get the following info from a PDF file via Lua/Ctx API?: - first: number of pages of the PDF, - next: for each page: get width, height and orientation (portrait/landscape) or rotation (+90,+ 180, +270 or so) of i

[NTG-context] Pdf info with Lua/Ctx API

2017-08-14 Thread Procházka Lukáš Ing .
Hello, is there a way how to get the following info from a PDF file via Lua/Ctx API?: - first: number of pages of the PDF, - next: for each page: get width, height and orientation (portrait/landscape) or rotation (+90,+ 180, +270 or so) of i-th page. Best regards, Lukas -- Ing. Lukáš Proch