![](https://secure.gravatar.com/avatar/02a711d78d02355347d6cff73fda2572.jpg?s=120&d=mm&r=g)
21 Feb
2012
21 Feb
'12
6:03 a.m.
On 2012-02-21 Hans Hagen
I can't figure out how to determine the number of pages of a PDF file within lua.
local fig = figures.push { name = "somefile.pdf" } figures.identify() figures.check() local nofpages = fig.used.pages figures.pop()
Thanks for the snippet, Hans. Marco