Sha256: 827a3a3f6f5deeaa0173db48d31587d271584afa4b2aa7808dec65e828ea4b88

Contents?: true

Size: 586 Bytes

Versions: 2

Compression:

Stored size: 586 Bytes

Contents

# encoding: utf-8
#
# An early example of basic text generation at absolute positions.
# Mostly kept for nostalgia.
#
require File.expand_path(File.join(File.dirname(__FILE__),
                                   %w[.. example_helper]))

Prawn::Document.generate "simple_text.pdf" do       
  fill_color "0000ff"
  draw_text "Hello World", :at => [200,420], :size => 32, :rotate => 45
  font "Times-Roman"     
  fill_color "ff0000"
  draw_text "Using Another Font", :at => [5,5]    
  start_new_page        
  font "Courier"       
  draw_text "Goodbye World", :at => [288,50]     
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
prawn-0.11.1 examples/text/simple_text.rb
davebenvenuti-prawn-0.11.1.pre examples/text/simple_text.rb