Sha256: 881a8d117111225046374aeb9f06b80b0f278e788649f1de0241e74c4cfba9ca

Contents?: true

Size: 317 Bytes

Versions: 2

Compression:

Stored size: 317 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__),
                                   %w[.. 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

2 entries across 2 versions & 2 rubygems

Version Path
prawn-0.11.1 examples/general/float.rb
davebenvenuti-prawn-0.11.1.pre examples/general/float.rb