Skip to content

Instantly share code, notes, and snippets.

@Behinder
Created May 12, 2017 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Behinder/73b0504cf61e063f911d7128d7415149 to your computer and use it in GitHub Desktop.
Save Behinder/73b0504cf61e063f911d7128d7415149 to your computer and use it in GitHub Desktop.
Merge all pdf in directory into one
require 'combine_pdf'
pdf = CombinePDF.new
Dir.glob("*.pdf") do |file|
pdf << CombinePDF.load(file)
end
pdf.save "KukBuk.pdf"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment