[pdftex] redundant objects with includegraphics

Sebastian Rahtz sebastian.rahtz at computing-services.oxford.ac.uk
Wed May 2 14:11:03 CEST 2001


Otfried Cheong writes:
 > Currently, if one does this:
 > 
 > 	Some text...
 > 	\includegraphics{a.pdf}
 > 	more text...
 > 	\includegraphics{a.pdf}
 > 	still some text...,
 > 
 > one ends up with TWO copies of the embedded PDF file "a.pdf".
 > Obviously one can avoid that using the \pdfrefximage feature, but I
 > don't think \includegraphics gives access to that.  Still one can
 > of course avoid the problem using \setbox and \usebox (but that
 > doesn't scale arbitrarily).

unless I am going soft in the head, or someone has broken it,
pdftex.def for includegraphics does keep just copy of an included
graphic, and subsequent requests just reference that copy. I clearly
recall doing the work several years ago

Sebastian




More information about the pdftex mailing list