Sha256: ae460988d6fec854bc6ae1db67bcaa8fc235f3f26329cd2938f1534481ffc7d6

Contents?: true

Size: 442 Bytes

Versions: 2

Compression:

Stored size: 442 Bytes

Contents

# encoding: utf-8

$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
require "prawn"

Prawn::Document.generate "hello.pdf" do       
  fill_color "0000ff"
  text "Hello World", :at => [200,420], :size => 32, :rotate => 45
  font "Times-Roman"     
  fill_color "ff0000"
  text "Overcoming singular font limitation", :at => [5,5]    
  start_new_page        
  font "Courier"       
  text "Goodbye World", :at => [288,50]     
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
fullcirclegroup-fullcirclegroup-prawn-0.2.99.2 examples/simple_text.rb
fullcirclegroup-prawn-0.2.99.3 examples/simple_text.rb