[pdftex] Multiple references to image fails.
Hartmut Henkel
hartmut_henkel at gmx.de
Mon Jun 9 23:47:10 CEST 2008
On Mon, 9 Jun 2008, John Culleton wrote:
> Early in the document I have:
> \hskip .25in
> \pdfximage width 2.5in{snapshot9.png}
> \edef\firstimage{\the\pdflastximage}
> \pdfrefximage\firstimage \hskip .25in
> ...and that works as expected.
>
> I use some more images.
> On a later page I have:
>
> \singlecolumn
> \vskip .5pt
> \pdfrefximage\firstimage
> \vskip.5pt
>
> ...and it fails with
>
> Overfull \vbox (72.4397pt too high) detected at line 221
> ! Undefined control sequence.
> l.223 \pdfrefximage\firstimage
>
> My question: how do I reuse this image without reloading it again?
what you want should work as you did it, so it must be some other error,
e. g., this works:
\pdfximage width 100mm{PM661.JPG}
\edef\firstimage{\the\pdflastximage}
\hbox{\pdfrefximage\firstimage}
\vfill\eject abc
\vfill\eject abc
\vfill\eject abc
\vfill\eject abc
\hbox{\pdfrefximage\firstimage}
\bye
Regards, Hartmut
More information about the pdftex
mailing list