initial prototype of ruby interface
[swftools.git] / lib / ruby / test.rb
1 require 'gfx'
2
3 pdf = GFX::PDF.new('test.pdf')
4
5 pdf.each_page do |page|
6     puts "#{page.nr} #{page.width}x#{page.height}"
7 end
8
9 class TestRender < GFX::Device
10     def stroke(line, width, color, capstyle, jointstyle, miterlimit)
11         p line
12     end
13 end
14
15 pdf.page(3).render(TestRender.new)