README.md in wiz_rtf-0.5.5 vs README.md in wiz_rtf-0.6.0
- old
+ new
@@ -19,14 +19,14 @@
$ gem install wiz_rtf
## Usage
```ruby
doc = WizRtf::Document.new do
- text "学生综合素质报告", :align => :center, 'font-size' => 48
+ text "学生综合素质报告", 'text-align' => :center, 'font-family' => 'Microsoft YaHei', 'font-size' => 48, 'font-bold' => true, 'font-italic' => true, 'font-underline' => true
image('h:\eahey.png')
page_break
- text "A Table Demo"
- table [[{content:'e',rowspan:4},{content:'4',rowspan:4},1,{content:'1',colspan:2}],
+ text "A Table Demo", 'foreground-color' => WizRtf::Color::RED, 'background-color' => '#0f00ff'
+ table [[{content: WizRtf::Image.new('h:\eahey.png'),rowspan:4},{content:'4',rowspan:4},1,{content:'1',colspan:2}],
[{content:'4',rowspan:3,colspan:2},8],[11]], column_widths:{1=>100,2 => 100,3 => 50,4 => 50,5 => 50} do
add_row [1]
end
end
doc.save('c:\text.rtf')