Sha256: 982e8ecaaaa4daa5ca5813a0d9c818ecc6097127e72c313094eea7ed6b855bff

Contents?: true

Size: 545 Bytes

Versions: 10

Compression:

Stored size: 545 Bytes

Contents

# coding: utf-8

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

Prawn::Document.generate("multi-layout.pdf", :page_layout => :landscape) do |pdf|
   pdf.text "This is on a landscaped page" 
   pdf.start_new_page(:layout => :portrait)
   pdf.text "This is on a portrait page"   
   pdf.start_new_page(:size => "LEGAL")
   pdf.text "This is on legal paper size"      
   pdf.start_new_page(:left_margin => 150, :right_margin => 150)
   pdf.text "This page has very wide left and right margins, causing a squeeze"
end

Version data entries

10 entries across 10 versions & 4 rubygems

Version Path
fullcirclegroup-fullcirclegroup-prawn-0.2.99.2 examples/multi_page_layout.rb
fullcirclegroup-prawn-0.2.99.3 examples/multi_page_layout.rb
satoko-prawn-0.2.99.6 examples/multi_page_layout.rb
prawn-0.1.0 examples/multi_page_layout.rb
prawn-0.1.2 examples/multi_page_layout.rb
prawn-0.1.1 examples/multi_page_layout.rb
prawn-0.2.1 examples/multi_page_layout.rb
prawn-0.2.2 examples/multi_page_layout.rb
prawn-0.2.0 examples/multi_page_layout.rb
prawn-0.2.3 examples/multi_page_layout.rb