Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I got 5 pdf files with their original dvi and ps, but i don't have the tex files which created them.

Now I would like to combine them to a single pdf. I know I can easily do it using Adobe acrobat. But it seems pdf mergers differ in efficiencies and qualities. e.g. the total size of my 5 pdf is 800kb, without any graphs. The Mac OS preview produces a combination file of size 10mb.. ridiculous. Acrobat gives 750kb which is a decent result.

So I think since I got the dvi and ps available maybe I could get better solution?

share|improve this question

2 Answers 2

I use pdftk:

pdftk 1.pdf 2.pdf cat output result.pdf

Some more complex cases:

pdftk A=1.pdf B=2.pdf cat A1-12 B3-5 A13-end output result.pdf
pdftk 1.pdf cat 2-30even output result.pdf

pdftk can do other stuff as well (split attachments (images) from document, fill in forms, ...)

share|improve this answer

Using pdflatex with the pdfpages package comes to mind. You create a small tex file and use

\Includepdf[pages=-]{<pdffile>}

Or you can use texexec from context, then you can do it on the command line with:

 texexec --pdfcopy --result=result.pdf 1.pdf 2.pdf
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.