[XeTeX] Protecting pdfpages \includepdf against broken PDF

Fr. Michael Gilmary FrMichaelGilmary at MaroniteMonks.org
Mon Jan 17 19:03:26 CET 2011


Jérôme Etévé wrote:


> I feel like I'm missing something here :)
>
> I have my doc.tex, which I process with
>
> xelatex doc.tex
>
> I know I can decompose this into two steps
>
> xelatex -no-pdf doc.tex
> xdvipdfmx doc.xdv
>
> Do you mean I could use pdflatex somewhere in that work flow?




No, but /after/ that workflow. After you produce the pdf, then use a 
file something like this:

%%%%%%%%%%%%%%%%%%%%
\documentclass{book}

\usepackage[left=0in,right=0in,top=0in,bottom=0in]{geometry}
\usepackage{pdfpages}

\begin{document}

\includepdf[pages=-,landscape,scale=1]{YOUR_FILE.pdf} % this simply 
reproduces your pdf (supposing the papersize is default or whatever, 
which you can change above either with the \documentclass or via geometry)

%\includepdf[pages=-,landscape,booklet,scale=1]{YOUR_FILE.pdf}% produces 
a booklet --- see pdfpages documentation
%\includepdf[pages=-,landscape,openright,nup=1x2,scale=1]{YOUR_FILE.pdf} 
% for reader spreads, not a booklet

\end{document}

%%%%%%%%%%%%%%%%%%%%



I don't know if that's actually a help to you ... but I'll pray that you 
get a solution!






-- 
United in adoration of Jesus,


fr. michael gilmary, mma

Most Holy Trinity Monastery
67 Dugway Road
Petersham, MA 01366-9725

www.MaroniteMonks.org


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20110117/a7b57583/attachment.html>


More information about the XeTeX mailing list