The following code can be compiled with pdflatex but not xelatex.
\documentclass{article}
\usepackage{graphicx,multido}
\begin{document}
\pdfximage{something.pdf}
\multido{\i=1+1}{\the\pdflastximagepages}{%
\fbox{\includegraphics[page=\i,scale=0.25]{something}}
\endgraf
}
\end{document}
The idea is to include each page of something.pdf as a separate image. I don't want to use pdfpages package and I want to use xelatex.
Are there macros that behave like \pdfximage and \pdflastximagepages but can be compiled with XeLaTeX?
pdfpages? – egreg Mar 13 '12 at 15:17figureenvironment for example. – kiss my armpit Mar 13 '12 at 15:21