pdf-wrapper 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +27 -0
- data/Rakefile +1 -1
- data/TODO +3 -1
- data/examples/cell.rb +2 -2
- data/examples/image.rb +4 -2
- data/examples/markup.rb +2 -2
- data/examples/repeating.rb +2 -2
- data/examples/scaled_image.rb +2 -2
- data/examples/shapes.rb +2 -2
- data/examples/table.rb +4 -6
- data/examples/table_fixed_col_width.rb +26 -0
- data/examples/translate.rb +2 -2
- data/examples/utf8-long.rb +3 -3
- data/examples/utf8.rb +2 -2
- data/examples/varied_page_size.rb +15 -0
- data/lib/pdf/wrapper.rb +158 -49
- data/lib/pdf/wrapper/table.rb +96 -21
- data/lib/pdf/wrapper/text.rb +52 -21
- data/specs/graphics_spec.rb +29 -26
- data/specs/image_spec.rb +21 -22
- data/specs/load_spec.rb +7 -6
- data/specs/spec_helper.rb +5 -0
- data/specs/tables_spec.rb +26 -25
- data/specs/text_spec.rb +72 -61
- data/specs/wrapper_spec.rb +162 -175
- metadata +4 -3
- data/examples/text.rb +0 -14
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdf-wrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Healy
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-09-16 00:00:00 +10:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -43,7 +43,8 @@ files:
|
|
43
43
|
- examples/scaled_image.rb
|
44
44
|
- examples/translate.rb
|
45
45
|
- examples/utf8.rb
|
46
|
-
- examples/
|
46
|
+
- examples/varied_page_size.rb
|
47
|
+
- examples/table_fixed_col_width.rb
|
47
48
|
- lib/pdf
|
48
49
|
- lib/pdf/core.rb
|
49
50
|
- lib/pdf/wrapper.rb
|
data/examples/text.rb
DELETED
@@ -1,14 +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.font("Sans Serif")
|
10
|
-
pdf.text "Line 1", :font_size => 8
|
11
|
-
pdf.text "Line 2", :font_size => 8
|
12
|
-
pdf.text "Line 3", :font_size => 8
|
13
|
-
pdf.text "Line 4\nLine 5", :font_size => 8
|
14
|
-
pdf.render_to_file("text.pdf")
|