iownbey (owner)

Revisions

gist: 60990 Download_button fork
public
Public Clone URL: git://gist.github.com/60990.git
pdf.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
    text "TADAAA"
  end
end