Create a gist now

Instantly share code, notes, and snippets.

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