[NTG-context] Page count of PDF file from lua

Marco netuse at lavabit.com
Sun Feb 19 14:50:15 CET 2012

I can't figure out how to determine the number of pages of a PDF
file within lua. From the TeX side it works with

Can somebody give me a nudge in the right direction? Example:


% Works
%\getfiguredimensions [somefile.pdf]

	-- Does not work

	local numpages = figures.get("used", "pages", 0)



More information about the ntg-context mailing list