[XeTeX] Inlined images?

Heiko Oberdiek heiko.oberdiek at googlemail.com
Tue Apr 12 11:17:06 CEST 2011


On Tue, Apr 12, 2011 at 09:30:57AM +0100, Jérôme Etévé wrote:

> > Of course if you just want to include the files as attachments to the PDF document, without any preview, then you can certainly do this using LaTeX. (But then you would probably have asked a different question.)
> 
> Nice, so how do we do that? Is it possible to do something along the
> lines of (fantasy code):
> 
> \attachBase64{<ID>,'image/png', <base64 encoded data>}
> 
> and refer it in includegraphics:
> 
> \includegraphics{cid:<ID>}

Of course, a converter for base64 and others could be written
in TeX^1. But the result would have to be written in temporary
external files and be input as image via \includegraphics.
  But I don't see the point of this exercise, you have such
a converter already in a much more efficient programming
language than TeX.

Yours sincerely
  Heiko Oberdiek

^1 Some conversions already are written, e.g. for encoding and
   decoding hex dumps: package `pdfescape'.


More information about the XeTeX mailing list