Skip to content

Instantly share code, notes, and snippets.

@therod
Created August 27, 2012 18:14
Show Gist options
  • Save therod/3491002 to your computer and use it in GitHub Desktop.
Save therod/3491002 to your computer and use it in GitHub Desktop.
rocr-folder
#!/usr/bin/env ruby
require 'rocr'
files = Dir.glob("#{ARGV.first}/*_Bild.pdf")
Dir.chdir(ARGV.first)
puts "WORKING DIRECTORY: #{Dir.pwd}"
files.each do |file|
puts "Converting: #{file}"
Rocr::Command.run(file)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment