tv-pdf-stamper 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/lib/pdf-stamper.rb +1 -0
- data/pdf-stamper.gemspec +37 -0
- data/spec/example.rb +10 -0
- metadata +10 -2
data/.gitignore
ADDED
data/lib/pdf-stamper.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'pdf/stamper'
|
data/pdf-stamper.gemspec
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{tv-pdf-stamper}
|
5
|
+
s.version = "0.3.8"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["Paul Schreiber", "Wes Morgan"]
|
9
|
+
s.date = %q{2013-01-21}
|
10
|
+
s.description = %q{Fill out PDF forms (templates) using iText's PdfStamper. == CAVEAT: You have to use JRuby or RJB. You need Adobe LiveCycle Designer or Acrobat Professional to create the templates. == EXAMPLE: pdf = PDF::Stamper.new("my_template.pdf") pdf.text :first_name, "Jason" pdf.text :last_name, "Yates" pdf.image :photo, "photo.jpg" pdf.checkbox :hungry pdf.save_as "my_output.pdf"}
|
11
|
+
s.email = ['paulschreiber@gmail.com', 'wes@turbovote.org']
|
12
|
+
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
|
13
|
+
s.files = `git ls-files`.split("\n")
|
14
|
+
s.test_files = `git ls-files -- spec/*`.split("\n")
|
15
|
+
s.homepage = %q{http://github.com/turbovote/pdf-stamper/}
|
16
|
+
s.rdoc_options = ["--main", "README.txt"]
|
17
|
+
s.require_paths = ["lib", "ext"]
|
18
|
+
s.rubyforge_project = %q{pdf-stamper}
|
19
|
+
s.rubygems_version = %q{1.3.1}
|
20
|
+
s.summary = %q{PDF templates using iText's PdfStamper.}
|
21
|
+
|
22
|
+
if s.respond_to? :specification_version then
|
23
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
24
|
+
s.specification_version = 2
|
25
|
+
|
26
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
27
|
+
s.add_development_dependency(%q<newgem>, [">= 1.2.3"])
|
28
|
+
s.add_development_dependency(%q<hoe>, [">= 1.8.0"])
|
29
|
+
else
|
30
|
+
s.add_dependency(%q<newgem>, [">= 1.2.3"])
|
31
|
+
s.add_dependency(%q<hoe>, [">= 1.8.0"])
|
32
|
+
end
|
33
|
+
else
|
34
|
+
s.add_dependency(%q<newgem>, [">= 1.2.3"])
|
35
|
+
s.add_dependency(%q<hoe>, [">= 1.8.0"])
|
36
|
+
end
|
37
|
+
end
|
data/spec/example.rb
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'pdf/stamper'
|
3
|
+
|
4
|
+
|
5
|
+
@pdf = PDF::Stamper.new(File.join(File.dirname(__FILE__), "test_template.pdf"))
|
6
|
+
@pdf.text :text_field01, "test"
|
7
|
+
@pdf.text :text_field02, "test2"
|
8
|
+
@pdf.image :button_field01, File.join(File.dirname(__FILE__), "logo.gif")
|
9
|
+
|
10
|
+
@pdf.save_as "test_output.pdf"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tv-pdf-stamper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -59,14 +59,18 @@ extra_rdoc_files:
|
|
59
59
|
- Manifest.txt
|
60
60
|
- README.txt
|
61
61
|
files:
|
62
|
+
- .gitignore
|
62
63
|
- History.txt
|
63
64
|
- Manifest.txt
|
64
65
|
- README.txt
|
65
66
|
- Rakefile
|
66
67
|
- ext/iText-4.2.0.jar
|
68
|
+
- lib/pdf-stamper.rb
|
67
69
|
- lib/pdf/stamper.rb
|
68
70
|
- lib/pdf/stamper/jruby.rb
|
69
71
|
- lib/pdf/stamper/rjb.rb
|
72
|
+
- pdf-stamper.gemspec
|
73
|
+
- spec/example.rb
|
70
74
|
- spec/logo.gif
|
71
75
|
- spec/pdf_stamper_spec.rb
|
72
76
|
- spec/test_template.pdf
|
@@ -97,4 +101,8 @@ rubygems_version: 1.8.23
|
|
97
101
|
signing_key:
|
98
102
|
specification_version: 2
|
99
103
|
summary: PDF templates using iText's PdfStamper.
|
100
|
-
test_files:
|
104
|
+
test_files:
|
105
|
+
- spec/example.rb
|
106
|
+
- spec/logo.gif
|
107
|
+
- spec/pdf_stamper_spec.rb
|
108
|
+
- spec/test_template.pdf
|