On Mon, 9 Jun 2008, John Culleton wrote: > \edef\firstimage{\the\pdflastximage} maybe it's in a group and therefore you need \global\edef or \xdef. Regards, Hartmut