[texhax] [pdftex] image XObjects in pdfTeX or XeTeX PDF output?
Peter Davis
pfd at pfdstudio.com
Mon Nov 22 01:48:14 CET 2010
On Sun, Nov 21, 2010 at 3:43 PM, Martin Schröder <martin at oneiros.de> wrote:
> 2010/11/21 Peter Davis <pfd at pfdstudio.com>:
> > On Sun, Nov 21, 2010 at 10:36 AM, Martin Schröder <martin at oneiros.de>
> wrote:
> >> \pdfxform
> >
> > Thanks! Anyone know if XeTeX has a facility like this? I think I need
> the
> > font, language and UTF-8 support that XeTeX has.
>
> I believe so - pdftex, xetex and luatex are very compatible. Try for
> yourself. :-)
>
Well, XeTeX 3.1415926-2.2-0.9997.4 doesn't appear to recognize \pdfxform,
unless there's some package that defines this that I'm unaware of. I just
tried this sample code I had found at
http://newsgroups.derkeiler.com/Archive/Comp/comp.text.tex/2010-04/msg00087.html
% minimal example:
% ----------------------------------------------------------
\documentclass[a4paper]{minimal}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}\makeatletter
First example:
\setbox\z@\hbox{Hello world !}
\begingroup
\pdfxform\z@\pdfrefxform\pdflastxform% globally voids \box\z@
\endgroup
\ifvoid\z@
The box is now void !
\else
\copy\z@
\fi
Second example:
\setbox\z@\hbox{Hello world !}
\begingroup
\setbox\z@\hbox{\copy\z@}
\pdfxform\z@\pdfrefxform\pdflastxform% locally voids \box\z@
\endgroup
\ifvoid\z@
The box is now void !
\else
\copy\z@
\fi
\end{document}\endinput
The XeTeX doc I have xetexmain.pdf doesn't mention this either.
Thanks,
-pd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20101121/417815a7/attachment.html>
More information about the texhax
mailing list