Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View prawn_example.rb
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.