File: fill_color.rb

package info (click to toggle)
ruby-prawn 1.0.0~rc1%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,248 kB
  • sloc: ruby: 17,499; sh: 44; makefile: 17
file content (14 lines) | stat: -rw-r--r-- 367 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# encoding: utf-8
#
# As of 9e48a6 (2009.01.03), this code fails to recognize fill_color in tables.
# Resolved in 664760 (2009.01.05)
#
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', '..','lib')
require "prawn/core"
require "prawn/layout"

Prawn::Document.generate("fill_color.pdf") do
  fill_color "ff0000"
  table [%w[1 2 3],%w[4 5 6],%w[7 8 9]], 
end