[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



%%% 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
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,  
turkish, ukenglish, ukrainian, loaded.
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/Users/lsequeir/Library/texmf/tex/latex/pdfpages/ppxetex.def)) (./ 
) ABD: EveryShipout initializing macros
(/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