Skip to content

Instantly share code, notes, and snippets.

@midu
Created January 25, 2011 16:26
Show Gist options
  • Save midu/795155 to your computer and use it in GitHub Desktop.
Save midu/795155 to your computer and use it in GitHub Desktop.
joins 2 pdfs
i = 1
h.each_pair do |id, type|
puts "#{id} - #{i}/#{h.size}"
begin
eval "`python '/System/Library/Automator/Combine PDF Pages.action/Contents/Resources/join.py' -o #{id}/joined.pdf #{id}/#{id}.pdf #{id}/attachment.pdf`"
rescue
puts "oh :("
end
i = i+1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment