Sha256: b5b0f2c8cab00899db5a47df8fce4a03c0128b3540b8e88e4c1433e74c2afa00

Contents?: true

Size: 349 Bytes

Versions: 5

Compression:

Stored size: 349 Bytes

Contents

#!/usr/bin/env ruby
# coding: utf-8

$:.unshift(File.dirname(__FILE__) + "/../lib")

require 'pdf/wrapper'

pdf = PDF::Wrapper.new(:paper => :A4)
pdf.rectangle(30,30,100,100, :fill_color => :red)
pdf.circle(100,300,30)
pdf.line(100, 350, 400, 150)
pdf.rounded_rectangle(300,300, 200, 200, 10, :fill_color => :green)
pdf.render_to_file("shapes.pdf")

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pdf-wrapper-0.0.6 examples/shapes.rb
pdf-wrapper-0.0.7 examples/shapes.rb
pdf-wrapper-0.0.3 examples/shapes.rb
pdf-wrapper-0.0.4 examples/shapes.rb
pdf-wrapper-0.0.5 examples/shapes.rb