Sha256: a2476a85c59ed3839daf0b4245f099afdc6518b6c8223fec1b1ada3c0790671c

Contents?: true

Size: 616 Bytes

Versions: 8

Compression:

Stored size: 616 Bytes

Contents

# encoding: utf-8
#
# If the table cannot fit on the current page it will flow to the next page just
# like free flowing text. If you would like to have the first row treated as a
# header which will be repeated on subsequent pages set the <code>:header</code>
# option to true.
#
require File.expand_path(File.join(File.dirname(__FILE__),
                                   %w[.. example_helper]))

filename = File.basename(__FILE__).gsub('.rb', '.pdf')
Prawn::Example.generate(filename) do
  data = [["This row should be repeated on every new page"]]
  data += [["..."]] * 30
  
  table(data, :header => true)
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
prawn-1.0.0 manual/table/flow_and_header.rb
prawn-0.15.0 manual/table/flow_and_header.rb
prawn-0.14.0 manual/table/flow_and_header.rb
prawn-0.13.2 manual/table/flow_and_header.rb
prawn-0.13.1 manual/table/flow_and_header.rb
prawn-0.13.0 manual/table/flow_and_header.rb
prawn-1.0.0.rc2 manual/table/flow_and_header.rb
nurettin-prawn-1.0.0.rc1 manual/table/flow_and_header.rb