examples/shapes.rb in pdf-wrapper-0.1.3 vs examples/shapes.rb in pdf-wrapper-0.2.0

- old
+ new

@@ -3,11 +3,11 @@ $:.unshift(File.dirname(__FILE__) + "/../lib") require 'pdf/wrapper' -pdf = PDF::Wrapper.new(:paper => :A4) +pdf = PDF::Wrapper.new("shapes.pdf", :paper => :A4) pdf.rectangle(30,30,100,100, :fill_color => :red) pdf.circle(100,300,30) pdf.line(100, 350, 400, 150) pdf.rectangle(300,300, 200, 200, :fill_color => :green, :radius => 10) -pdf.render_to_file("shapes.pdf") +pdf.finish