Concatenate 2 PDF documents


#1

Hi.

Anyone know if there’s a library out there that supports concatenation
of 2 PDF documents?
Basically I need to append b.pdf to a.pdf.

Br,

Morten


#2

Morten wrote:

Hi.

Anyone know if there’s a library out there that supports concatenation
of 2 PDF documents?
Basically I need to append b.pdf to a.pdf.

http://www.accesspdf.com/pdftk/


#3

Hi.

Anyone know if there’s a library out there that supports concatenation
of 2 PDF documents?
Basically I need to append b.pdf to a.pdf.

http://www.lowagie.com/iText/

There’s an example included called Concat.java that does exactly that.

iText is not written in Ruby, but despite this shortcoming it is a very
good piece of software :wink:

Kristian


#4

removed_email_address@domain.invalid wrote:

iText is not written in Ruby, but despite this shortcoming it is a very
good piece of software :wink:

Kristian

Thanks for the tips. I was secretly hoping for a Ruby only solution, or
one that did not require me to have my hosting provider install Java.

The pdftk port has an awful lot of dependencies. It seems that
ImageMagick can do it: convert some.pdf other.pdf output.pfd - I’ll be
looking into that.

Br,

Morten