[texhax] [pdftex] image XObjects in pdfTeX or XeTeX PDF output?

Alexander Grahn A.Grahn at fzd.de
Mon Nov 22 16:29:03 CET 2010


On Mon, Nov 22, 2010 at 04:16:12PM +0100, Paul Isambert wrote:
>Selon Alexander Grahn <A.Grahn at fzd.de>:
>
>> On Mon, Nov 22, 2010 at 07:53:44AM -0500, William Adams wrote:
>> >On Nov 19, 2010, at 3:30 PM, Ross Moore wrote:
>> >
>> >(re: an image included multiple times being included but once and thereafter
>> referred to)
>> >
>> >> PdfTeX does this automatically for you.
>> >
>> >So does XeTeX.
>>
>> This may work with inclusion of external graphics from files, with TeX
>> boxes it doesn't:
>>
>> \setbox0=\hbox{Hello World!}\copy0\copy0\copy0
>>
>> does not create a Form XObject to be inserted on every \copy0, at least
>> at my end.
>
>No, you need to declare the XObject as such:
>
>\setbox0=\hbox{Hello world.}
>\pdfxform0
>\pdfrefxform\pdflastxform
>
>Note that box 0 is empty after the second line. So pdfTeX does that
>automatically for you... once you know the right command :)

I know the right command.

The topic poster repeatedly asked for the Xe(La)TeX way of creating
Form XObjects. Your code is pdfTeX specific and will definitely not work
with XeTeX.

\special{pdf:bxobj ...}
\special{pdf:exobj ...}
\special{pdf:uxobj ...}

are the XeTeX (and dvipdfmx and dvipdfm) equivalents, as I wrote in my
previous message.

Alexander

>
>Best,
>Paul


More information about the texhax mailing list