Sha256: 921f0d3edcb67eb685012264699245c643b4417862150b01dc03cfc4f26ab566

Contents?: true

Size: 539 Bytes

Versions: 7

Compression:

Stored size: 539 Bytes

Contents

# encoding: utf-8
#
# Demonstrates the :underline_header border style for Document#table.
#
require "#{File.dirname(__FILE__)}/../example_helper.rb"

Prawn::Document.generate "table_header_underline.pdf" do
  table [ ['01/01/2008', 'John Doe', '4.2', '125.00', '525.00'], 
          ['01/12/2008', 'Jane Doe', '3.2', '75.50', '241.60'] ] * 5,
  :position => :center,
  :headers => ['Date', 'Employee', 'Hours', 'Rate', 'Total'],
  :column_widths => { 0 => 75, 1 => 100, 2 => 50, 3 => 50, 4 => 50},
  :border_style => :underline_header
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
jyurek-prawn-layout-0.8.4 examples/table/table_header_underline.rb
prawn-layout-0.8.4 examples/table/table_header_underline.rb
prawn-layout-0.7.2 examples/table/table_header_underline.rb
prawn-layout-0.7.1 examples/table/table_header_underline.rb
prawn-layout-0.3.2 examples/table/table_header_underline.rb
prawn-layout-0.3.1 examples/table/table_header_underline.rb
prawn-layout-0.2.1 examples/table/table_header_underline.rb