Sha256: ed88c25576433f2537e63cc00933e708259c465007a995bc480931c2bde37d34
Contents?: true
Size: 592 Bytes
Versions: 1
Compression:
Stored size: 592 Bytes
Contents
# encoding: utf-8 # # Demonstrates how to set the table border color with the :border_color # attribute. # $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', '..', 'lib')) require "prawn" Prawn::Document.generate "table_border_color.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'] ] * 20, :position => :center, :headers => ['Date', 'Employee', 'Hours', 'Rate', 'Total'], :widths => { 0 => 75, 1 => 100, 2 => 50, 3 => 50, 4 => 50}, :border_style => :grid, :border_color => "ff0000" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
prawn-0.3.0 | examples/table/table_border_color.rb |