Sha256: 7e047609807623ca1fb87f18a7ef03fb92bead5e34a9ef7690d2fa244d26c33c

Contents?: true

Size: 345 Bytes

Versions: 2

Compression:

Stored size: 345 Bytes

Contents

# encoding: utf-8    

require File.expand_path(File.join(File.dirname(__FILE__),
                                   %w[.. example_helper]))

Prawn::Document.generate('show_grid.pdf') do |p|
  p.define_grid(:columns => 5, :rows => 8, :gutter => 10)
  
  p.grid.show_all
  
  p.grid(2,4).show("FF0000")
  p.grid([3,0], [5,3]).show("0000FF")
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
prawn-0.11.1 examples/grid/show_grid.rb
davebenvenuti-prawn-0.11.1.pre examples/grid/show_grid.rb