secret
Created

  • Download Gist
prawn_example.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12
require "rubygems"
require "prawn"
 
doc = Prawn::Document.new do
text "Yo."
move_down 300
column_box([0, cursor], width: bounds.width) do
text "colbox " * 1000
end
render_file("/tmp/example.pdf")
end
`open /tmp/example.pdf` # OS X

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.