[pdftex] How to concatenate PDF files

siep at elvenkind.com siep at elvenkind.com
Mon Jan 15 09:47:29 CET 2001

On 12 Jan, Boris Tobotras wrote:
> 	Hi,
> 	I remember some time ago somebody showed here how to use pdftex to
> 	concatenate several PDF files, but I was unable to found that
> 	message. Can anybody help, please?

Another way to do this:

Acrobat Distiller includes documentation for concatenating ps files with
a driver file:

/prun { /mysave save def       % Performs a save before running the PS file
        dup = flush            % Shows name of PS file being run
        RunFile                % Calls built in Distiller procedure
        clear cleardictstack   % Cleans up after PS file
        mysave restore         % Restores save level
} def

(filename1.ps) prun
(filename2.ps) prun

This also applies to Ghostscript, With `Runfile' replaced with `run'.

You can either first convert pdf to ps before applying this or try
whether you can use the pdfs directly.

Siep Kroonenberg
siep at elvenkind.com

More information about the pdftex mailing list