Sha256: 100ed94815577e35931d16ebe81b45f61a0b76eace285573a92ace8e9d6fb681

Contents?: true

Size: 253 Bytes

Versions: 15

Compression:

Stored size: 253 Bytes

Contents

require "#{File.dirname(__FILE__)}/../example_helper"

Prawn::Document.generate('float.pdf') do
  float do
    bounding_box [bounds.width / 2.0, bounds.top], :width => 100 do
      text "Hello world. " * 50
    end
  end

  text "Hello world again"
end

Version data entries

15 entries across 15 versions & 6 rubygems

Version Path
piglop-prawn-0.10.2.3 examples/general/float.rb
piglop-prawn-0.10.2.2 examples/general/float.rb
piglop-prawn-0.10.2.1 examples/general/float.rb
prawn-0.11.1.pre examples/general/float.rb
goodwill-prawn-edge-0.10.0 examples/general/float.rb
alphasights-prawn-0.10.4 examples/general/float.rb
alphasights-prawn-0.10.3 examples/general/float.rb
alphasights-prawn-0.10.2 examples/general/float.rb
alphasights-prawn-0.10.1 examples/general/float.rb
alphasights-prawn-0.10.0 examples/general/float.rb
prawn-core-0.8.4 examples/general/float.rb
prawn-graph-0.0.2 vendor/prawn-core/examples/general/float.rb
prawn-graph-0.0.1 vendor/prawn-core/examples/general/float.rb
prawn-core-0.7.2 examples/general/float.rb
prawn-core-0.7.1 examples/general/float.rb