manual/table/cell_text.rb in prawn-1.0.0 vs manual/table/cell_text.rb in prawn-1.1.0
- old
+ new
@@ -12,27 +12,27 @@
#
require File.expand_path(File.join(File.dirname(__FILE__),
%w[.. example_helper]))
filename = File.basename(__FILE__).gsub('.rb', '.pdf')
-Prawn::Example.generate(filename) do
+Prawn::ManualBuilder::Example.generate(filename) do
data = [ ["Look at how the cells will look when styled", "", ""],
["They probably won't look the same", "", ""]
]
-
+
table data, :cell_style => { :font => "Times-Roman", :font_style => :italic }
move_down 20
-
+
table data, :cell_style => { :size => 18, :text_color => "346842" }
move_down 20
-
+
table [["Just <font size='18'>some</font> <b><i>inline</i></b>", "", ""],
["<color rgb='FF00FF'>styles</color> being applied here", "", ""]],
:cell_style => { :inline_format => true }
move_down 20
-
+
table [["1", "2", "3", "rotate"]], :cell_style => { :rotate => 30 }
move_down 20
-
+
table data, :cell_style => { :overflow => :shrink_to_fit, :min_font_size => 8,
:width => 60, :height => 30 }
end