[DVIPDFMx] `pdf:image' already prints image to paper

Alexander Grahn A.Grahn at hzdr.de
Mon Aug 22 21:28:43 KST 2011


Hi,

I'd like to create an Image XObject from a bitmapped file. But instead
of only creating the object, the `pdf:image' special already prints it
to the page. This is different from pdftex behaviour.

Is there a way to prevent pdf:image from immediately printing the image
file? I need the Image XObject for a different purpose than printing
to paper.

Consider the two example files below, one for dvipdfmx and one for
pdftex. The generated pdf displays lion.png twice in case of dvipdfmx,
while only once with pdftex (when explicitly referenced).

Would it be possible to provide an option to the special for this purpose,
say `nodisplay'?

Regards,
Alexander

dvipdfmx:
---------
Text

\vskip8cm
\special{pdf:image @myImageXObj (lion.png)} %already displays lion.png :(

\vskip8cm
\special{pdf:usexobj @myImageXObj}

\bye

pdftex:
-------
Text

\immediate\pdfximage{lion.png} %doesn't display, creates Image XObject only
\def\myImageXObj{\the\pdflastximage}

\vskip1cm
\pdfrefximage\myImageXObj %first display of lion.png

\bye


More information about the dvipdfmx mailing list