iownbey (owner)

Revisions

gist: 60965 Download_button fork
public
Public Clone URL: git://gist.github.com/60965.git
Embed All Files: show embed
pdf.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
    horizontal_rule
    rectangle [0,0], 100, 810
end