Sha256: 0f2b41bc55b2d59f49cb01b77b0c628ca3febabd4e8f746c1b8574a63f4b4ce8

Contents?: true

Size: 579 Bytes

Versions: 7

Compression:

Stored size: 579 Bytes

Contents

# encoding: utf-8

$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
require "prawn"
   
Prawn::Document.generate("image-flow.pdf", :page_layout => :landscape) do                             
  stef = "#{Prawn::BASEDIR}/data/images/stef.jpg"  
  
  text "o hai"
  
  image stef 
  
  text "flowing text" 
  
  image stef, :position => :center   
  
  text "beneath images"
                 
  image stef, :position => :right  
  
  text "again"
                 
  image stef, :position => :left     
  
  text "and again"     
  
  image stef, :position => 50
  
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
satoko-prawn-0.2.99.6 examples/image_flow.rb
prawn-0.1.1 examples/image_flow.rb
prawn-0.1.2 examples/image_flow.rb
prawn-0.2.2 examples/image_flow.rb
prawn-0.2.1 examples/image_flow.rb
prawn-0.2.0 examples/image_flow.rb
prawn-0.2.3 examples/image_flow.rb