# PDF combine

**URL:** <https://www.ruby-forum.com/t/pdf-combine/110816>\
**Category:** Rails\
**Created:** [July 31, 2007, 9:52am UTC](https://www.ruby-forum.com/t/pdf-combine/110816 "2007-07-31T09:52:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![watxit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/85e7bf/32.png) [@watxit](https://www.ruby-forum.com/u/watxit)\
**Post date:** [July 31, 2007, 9:52am UTC](https://www.ruby-forum.com/t/pdf-combine/110816/1 "2007-07-31T09:52:28Z")

</div>

Hi guy!  
Can you help me the way or code to combine 2 PDF file.

---

<div class="post-metadata">

**Author:** ![watxit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/85e7bf/32.png) [@watxit](https://www.ruby-forum.com/u/watxit)\
**Post date:** [July 31, 2007, 4:18pm UTC](https://www.ruby-forum.com/t/pdf-combine/110816/2 "2007-07-31T16:18:48Z")

</div>

You could use pdftk ([PDFtk - The PDF Toolkit](http://www.accesspdf.com/pdftk/)).  
It’s a command line utility, but probably the best and easiest. Your  
other alternatives are using Ruby PDF libraries, like PDF::Writer and  
others, which load the files in memory, and would be later  
reconstructing them.  
Bye,

nachokb

On Jul 31, 4:52 am, Thinh P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
