[OS X TeX] Re: XeTeX and pdfpages: no dice?

Luis Sequeira lfsequeira at fc.ul.pt
Wed Apr 18 09:06:08 EDT 2007


> Here is a first beta version of pdfpages with a XeTeX driver file:
>
> http://stud4.tuwien.ac.at/~e9225580/pdfpages-v0.4b-beta1.tar.bz2
>
> ...

>
>
> Anyway, just try the beta version and tell me how/if it works.
> I tested pdfpages by just calling the xetex binary directly; no
> options like -output-driver, -no-pdf and no external dvi->pdf
> converter. I am working on Linux if that matters; just heard
> of a xdv2pdf for MacOS -- one more driver business ... good lord.
>


I tried a very minimal example with several different pdf files. Some  
had only one page, some had a few. I also tried several variants in  
regard to the choice of pages to include.
My success varied with the files I tried to include: with some, it  
worked, with other files it produced an error; the error indicated  
that pdfpages could not determine the number of pages in the file  
(see below).


Below is my example and the log from one of the cases that went wrong.

%%% example
\documentclass{article}

\usepackage[xetex]{graphicx}
\usepackage[xetex]{pdfpages}

\begin{document}
\includepdf[pages=-]{test.pdf}
\end{document}

%%% end of example


%%% log

This is XeTeXk, Version 3.141592-2.2-0.996 (Web2C 7.5.6)
\write18 enabled.
%&-line parsing enabled.
entering extended mode
(./Untitled.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax,  
dumylang, noh
yphenation, arabic, basque, bulgarian, coptic, welsh, czech, slovak,  
german, ng
erman, danish, esperanto, spanish, catalan, galician, estonian,  
farsi, finnish,
french, greek, monogreek, ancientgreek, croatian, hungarian,  
interlingua, ibyc
us, indonesian, icelandic, italian, latin, mongolian, dutch, norsk,  
polish, por
tuguese, pinyin, romanian, russian, slovenian, uppersorbian, serbian,  
swedish,
turkish, ukenglish, ukrainian, loaded.
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2007/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2007/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2007/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2007/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2007/texmf/tex/latex/config/graphics.cfg)
(/usr/local/texlive/2007/texmf-dist/tex/xelatex/graphics/xetex.def)))
(/Users/lsequeir/Library/texmf/tex/latex/pdfpages/pdfpages.sty
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/ifthen.sty)
(/usr/local/texlive/2007/texmf-dist/tex/latex/tools/calc.sty)
(/usr/local/texlive/2007/texmf-dist/tex/latex/eso-pic/eso-pic.sty
(/usr/local/texlive/2007/texmf-dist/tex/latex/everyshi/everyshi.sty))
(/Users/lsequeir/Library/texmf/tex/latex/pdfpages/ppxetex.def)) (./ 
Untitled.aux
) ABD: EveryShipout initializing macros
(/usr/local/texlive/2007/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2007/texmf/tex/latex/config/color.cfg)) [1]
!!! Error: Failed to get number of pages!
)
(\end occurred inside a group at level 1)

### semi simple group (level 1) entered at line 16 (\begingroup)
### bottom level
(\end occurred when \ifx on line 16 was incomplete)
(\end occurred when \iftrue on line 16 was incomplete)
Output written on Untitled.pdf (1 page).
Transcript written on Untitled.log.

%%% end of log


Luis Sequeira


------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the MacOSX-TeX mailing list