[pdftex] Merging PDFs
Kester Clegg
kester at cs.york.ac.uk
Sun Jun 1 17:13:37 CEST 2003
Lukas Mathis <lukas.mathis at iogram.ch> writes:
[...]
> First, I can't seem to figure out how to import PDF files that are
> several pages long. They always get cropped after the first page.
Perhaps you should check the archives? Posted by "Patrick Brockmann
(LSCE/IPSL)" <Patrick.Brockmann at ipsl.jussieu.fr>:
-----------------------------------------------------------------
Hi all,
I would like to thank those who answered to my install question
especially Andreas Matthias and Ross Moore.
Thanks also to Andreas MATTHIAS
who has developped the wonderful pdfpages package.
Patrick
Here are the notes, I took during my diffrent install:
**********************************************
pdflatex and pdfpages installation
Update: March, 19th 2002
The goal is to install pdfpages which is a package to include PDF
documents in LaTeX.
"This package makes it easy to include pages from external PDF
documents in LaTeX documents. It is possible to
arrange two or four logical pages from a PDF document on each
physical sheet of paper from LaTeX. It is similar to
\includegraphics in some respects. Landscape format is supported.
Pages are centered automatically. You can select
pages to be included with, e.g., pages={3,5-11,20,38}. "
pdfpages package runs only with 14h released of pdflatex.
To check this, type pdflatex -v. You should get:
This is pdfTeX, Version 3.14159-14h-released-20010417 (Web2C7.3.3.1)
Once, you are sure to get this right release. You should be able to run
examples given in the pdfpages package
pdflatex pdf-ex.tex and pdflatex pdf-hyp.tex
If everything is allright then you can forget the following lines!
If not, hope this will help.
Information links:
pdflatex: http://www.tug.org/teTeX/
and: http://www.tug.org/applications/pdftex/
pdfpages:
http://www.ctan.org/tex-archive/macros/latex/contrib/supported/pdfpages/
and installation:
http://www.ctan.org/installationadvice/#installationguidelines
What I did:
Linux Workstations as root
1.teTeX distribution
Install/Upgrade with RPM to tetex-latex-1.0.7-38.2
(See http://rpmfind.net/linux/RPM/)
At this stage, TeX distribution should be installed with the
pdflatex 14h-released.
2.pdfpages package
Get last pdftex.def file from
http://www.tug.org/applications/pdftex/
Update pdftex.def
# cp pdftex.def
/usr/share/texmf/tex/latex/graphics
Get pdfpages package tar file from
http://www.ctan.org/tex-archive/macros/latex/contrib/supported/pdfpages/
# cp pdfpages.tar /usr/share/texmf/tex/latex
# cd /usr/share/texmf/tex/latex
# tar xvf pdfpages.tar
# cd pdfpages
# pdflatex pdfpages.ins
# pdflatex pdfpages.dtx
# pdflatex pdf-ex.tex
# pdflatex pdf-hyp.tex
# texhash
Other Workstations (not as simple as with Linux!)
1.teTeX binary distribution
Unset all previous TEX environment variables
Get last precompiled binary (1.0) from
http://www.tug.org/teTeX/ and nearest ftp site
Install following instructions given in the INSTALL file
# mkdir binaries base doc fonts goodies
# ftp nearest.ftp.site
ftp> cd tex-archive/systems/unix/teTeX/1.0/distrib/
ftp> bin
ftp> dir binaries
ftp> prompt
ftp> mget install.sh base doc fonts goodies
binaries/xxxxxxxxx.tar.gz
# install.sh
At this stage, TeX distribution should be installed, but not
with the pdflatex 14h-released.
2.pdflatex (14h-released)
Get last sources with
ftp://ftp.muni.cz/pub/tex/local/cstug/thanh/pdftex/0.14h/pdftex-20010417.tgz
# mkdir ~/mypdflatex
# cp pdftex-20010417.tgz ~/mypdflatex
# cd ~/mypdflatex
# gunzip pdftex-20010417.tgz
# tar xvf pdftex-20010417.tar
Install following instructions
# cd src
# configure --prefix=~/mypdflatex
# cd texk/web2c
Edit the Makefile and remove string `datestr`
which does not exist on my different platforms
Change also the CC flag from gcc to cc (on my
DEC alpha-osf platforms)
# make pdftexbin
Copy and regeneration of pool and format files
# cp ~/mypdflatex/src/texk/web2c/pdftex
~/mytetex/bin/
# cp ~/mypdflatex/src/texk/web2c/pdftex.pool
~/mytetex/share/texmf/web2c/
# cd ~/mytetex/share/texmf/tex/latex/base
# ~/mytetex/bin/pdftex -ini -fmt=pdflatex latex.ltx
# cp pdflatex.fmt ~/mytetex/share/texmf/web2c/
At this stage, TeX distribution should be installed with the
pdflatex 14h-released.
3.pdfpages package
Get last pdftex.def file from
http://www.tug.org/applications/pdftex/
Update pdftex.def
# cp pdftex.def
~/mytetex/share/texmf/tex/latex/graphics/
Get pdfpages package tar file from
http://www.ctan.org/tex-archive/macros/latex/contrib/supported/pdfpages/
# cp pdfpages.tar ~/mytetex/share/texmf/tex/latex
# cd ~/mytetex/share/texmf/tex/latex
# tar xvf pdfpages.tar
# cd pdfpages
# ~/mytetex/bin/pdflatex pdfpages.ins
# ~/mytetex/bin/pdflatex pdfpages.dtx
# ~/mytetex/bin/pdflatex pdf-ex.tex
# ~/mytetex/bin/pdflatex pdf-hyp.tex
# cd ~/mytetex/share/texmf
# ~/mytetex/bin/texhash
If texhash has no action (?), use
# ls -R >! ls-R
4.Update your path
set path=($path /your/install/teTeX/directory/bin)
--------------------------------------------------------------------
--
************************************************************************
Kester Clegg Dept. of Computer Science,
Research Associate (UTC) University of York, UK
Tel (01904) 43 27 49 email: kester at cs.york.ac.uk
************************************************************************
More information about the pdftex
mailing list