This was asked in 2008. Hopefully there\'s a better answer now.
How can you combine PDFs in ruby?
I\'m using the pdf-stamper gem to fill out a form in a PDF.
Use ghostscript to combine PDFs:
options = "-q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite" system "gs #{options} -sOutputFile=result.pdf file1.pdf file2.pdf"