pdf-wrapper 0.0.7 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # coding: utf-8
3
-
4
- $:.unshift(File.dirname(__FILE__) + "/../lib")
5
-
6
- require 'pdf/wrapper'
7
-
8
- pdf = PDF::Wrapper.new(:paper => :A4)
9
- pdf.rectangle(100, 100, 200, 200)
10
- pdf.image(File.dirname(__FILE__) + "/../specs/data/zits.gif", :left => 100, :top => 100, :width => 200, :height => 200, :padding => 25, :proportional => true)
11
-
12
- pdf.render_to_file("image.pdf")
data/examples/template.rb DELETED
@@ -1,13 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # coding: utf-8
3
-
4
- $:.unshift(File.dirname(__FILE__) + "/../lib")
5
-
6
- require 'pdf/wrapper'
7
-
8
- pdf = PDF::Wrapper.new(:paper => :A4)
9
- pdf.default_font("Sans Serif")
10
- pdf.default_color(:black)
11
- pdf.text "James", :font => "Monospace", :font_size => 8, :alignment => :left
12
- #pdf.start_new_page()
13
- pdf.render_to_file("template.pdf")