Skip to content

Instantly share code, notes, and snippets.

@imownbey
Created February 9, 2009 20:41
Show Gist options
  • Save imownbey/60968 to your computer and use it in GitHub Desktop.
Save imownbey/60968 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'prawn'
require 'prawn/layout'
require 'prawn/format'
Prawn::Document.generate("current-events.pdf",
:page_size => [432, 810],
:left_margin => 0,
:right_margin => 0,
:top_margin => 0,
:bottom_margin => 0) do
text "tada"#, :at => [0, 0], :rotate => 90
bounding_box [0, 0], :width => 100, :height => 810 do
fill_color "cecece"
fill_rectangle [0,0], 100, 810
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment