Need to combine a bunch of PDF files in pure ruby?

Found a great set of gems:

PDF Merger (also requires RJB, and iText)

Once you've got your JRE installed and iText installed - install the gems:

gem install pdf-merger
gem install rjb

Then this code is as simple as it gets:

That's it - works well on OS X - haven't tried it elsewhere yet.

 Share!