PDF Merging (pdf/merger)
by Paul Schreiber
Merge PDFs using iText.
# Gemfile.rb gem 'rjb' gem 'pdf-merger'
$ bundle install $ rails server
On some systems, such as Linux, you need to manually set the encoding. If you don't do that, merging on filenames with special characters will fail with a java.io.IOEXception (not found as file or resource).
I added this line to my
environments/production.rb to fix the problem:
# environments/production.rb ENV["LC_ALL"] = "en_US.utf8"
Copyright 2010-14 Paul Schreiber. Released under the MIT License. See LICENSE.txt for further details.