Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 83c6c734a9
Fetching contributors…

Cannot retrieve contributors at this time

executable file 19 lines (15 sloc) 0.352 kB
require "rubygems"
require "thor"
require "flying_saucer"
class Saucer < Thor
desc "fly", "create a PDF"
def fly(input, output = "out.pdf")
puts "Rendering PDF..."
input_file = "#{File.expand_path(input)}"
File.open(output, 'w') do |file|
ITextRenderer.new.make_pdf(input, file)
end
puts "Done."
end
end
Saucer.start
Jump to Line
Something went wrong with that request. Please try again.