On 2012-02-21 Hans Hagen <pra...@wxs.nl> wrote: > > 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 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________