fillable-pdf 1.0.1 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -5
- data/ext/commons-9.7.0.jar +0 -0
- data/ext/{font-asian-9.4.0.jar → font-asian-9.7.0.jar} +0 -0
- data/ext/{forms-9.4.0.jar → forms-9.7.0.jar} +0 -0
- data/ext/{io-9.4.0.jar → io-9.7.0.jar} +0 -0
- data/ext/{kernel-9.4.0.jar → kernel-9.7.0.jar} +0 -0
- data/ext/layout-9.7.0.jar +0 -0
- data/ext/{slf4j-api-2.0.17.jar → slf4j-api-2.0.18.jar} +0 -0
- data/ext/slf4j-simple-2.0.18.jar +0 -0
- data/lib/fillable-pdf/version.rb +1 -1
- metadata +11 -26
- data/.github/workflows/lint.yml +0 -22
- data/.github/workflows/test.yml +0 -37
- data/.gitignore +0 -15
- data/.rubocop.yml +0 -64
- data/Appraisals +0 -29
- data/Gemfile +0 -22
- data/Rakefile +0 -13
- data/bin/console +0 -14
- data/bin/lint +0 -30
- data/bin/setup +0 -8
- data/ext/commons-9.4.0.jar +0 -0
- data/ext/layout-9.4.0.jar +0 -0
- data/ext/slf4j-simple-2.0.17.jar +0 -0
- data/fillable-pdf.gemspec +0 -32
- data/images/blank.png +0 -0
- data/images/checked.png +0 -0
- data/images/distinct.png +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3105d6a8fe53b1a6e31ba6c13742fcf1084e9a37e54e6163545962e0afad39c9
|
|
4
|
+
data.tar.gz: be445e7766b56bf10b87a08683909932039e3bdd6ed99d2f743635f24f650867
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7bc9900f789332db17d1b754a911139fd99e14b2410bcaab167311b0d29404fffe0131ea450963fee265c9db0daaa50852371b5ca63f2eadc39c636c3ce62126
|
|
7
|
+
data.tar.gz: 412662633f9de92c60cecceaea7bee5afda28c7b55edb5f76d8a424ab9b096a4f598bca4e7ef99adcbe41da090e84a9b1247c99301e25746dd0b5140ad024d51
|
data/README.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
# FillablePDF
|
|
3
3
|
|
|
4
|
-
[](https://rubygems.org/gems/fillable-pdf)
|
|
5
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
6
|
[](https://github.com/vkononov/fillable-pdf/actions/workflows/lint.yml)
|
|
6
7
|
[](https://github.com/vkononov/fillable-pdf/actions/workflows/test.yml)
|
|
7
8
|
|
|
@@ -191,10 +192,10 @@ An instance of `FillablePDF` has the following methods at its disposal:
|
|
|
191
192
|
# output example: '/Btn'
|
|
192
193
|
|
|
193
194
|
# list of all field types
|
|
194
|
-
FillablePDF::Field::BUTTON
|
|
195
|
-
FillablePDF::Field::CHOICE
|
|
196
|
-
FillablePDF::Field::SIGNATURE
|
|
197
|
-
FillablePDF::Field::TEXT
|
|
195
|
+
FillablePDF::Field::BUTTON # => '/Btn'
|
|
196
|
+
FillablePDF::Field::CHOICE # => '/Ch'
|
|
197
|
+
FillablePDF::Field::SIGNATURE # => '/Sig'
|
|
198
|
+
FillablePDF::Field::TEXT # => '/Tx'
|
|
198
199
|
```
|
|
199
200
|
|
|
200
201
|
You can check the field type by using:
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/lib/fillable-pdf/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fillable-pdf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vadim Kononov
|
|
@@ -55,35 +55,21 @@ description: FillablePDF is an extremely simple and lightweight utility that bri
|
|
|
55
55
|
iText and Ruby in order to fill out fillable PDF forms or extract field values from
|
|
56
56
|
previously filled out PDF forms.
|
|
57
57
|
email:
|
|
58
|
-
- vadim@
|
|
58
|
+
- vadim@konoson.com
|
|
59
59
|
executables: []
|
|
60
60
|
extensions: []
|
|
61
61
|
extra_rdoc_files: []
|
|
62
62
|
files:
|
|
63
|
-
- ".github/workflows/lint.yml"
|
|
64
|
-
- ".github/workflows/test.yml"
|
|
65
|
-
- ".gitignore"
|
|
66
|
-
- ".rubocop.yml"
|
|
67
|
-
- Appraisals
|
|
68
|
-
- Gemfile
|
|
69
63
|
- LICENSE.md
|
|
70
64
|
- README.md
|
|
71
|
-
-
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
-
|
|
75
|
-
- ext/
|
|
76
|
-
- ext/
|
|
77
|
-
- ext/
|
|
78
|
-
- ext/
|
|
79
|
-
- ext/kernel-9.4.0.jar
|
|
80
|
-
- ext/layout-9.4.0.jar
|
|
81
|
-
- ext/slf4j-api-2.0.17.jar
|
|
82
|
-
- ext/slf4j-simple-2.0.17.jar
|
|
83
|
-
- fillable-pdf.gemspec
|
|
84
|
-
- images/blank.png
|
|
85
|
-
- images/checked.png
|
|
86
|
-
- images/distinct.png
|
|
65
|
+
- ext/commons-9.7.0.jar
|
|
66
|
+
- ext/font-asian-9.7.0.jar
|
|
67
|
+
- ext/forms-9.7.0.jar
|
|
68
|
+
- ext/io-9.7.0.jar
|
|
69
|
+
- ext/kernel-9.7.0.jar
|
|
70
|
+
- ext/layout-9.7.0.jar
|
|
71
|
+
- ext/slf4j-api-2.0.18.jar
|
|
72
|
+
- ext/slf4j-simple-2.0.18.jar
|
|
87
73
|
- lib/fillable-pdf.rb
|
|
88
74
|
- lib/fillable-pdf/errors.rb
|
|
89
75
|
- lib/fillable-pdf/field.rb
|
|
@@ -97,7 +83,6 @@ metadata:
|
|
|
97
83
|
rubygems_mfa_required: 'true'
|
|
98
84
|
rdoc_options: []
|
|
99
85
|
require_paths:
|
|
100
|
-
- ext
|
|
101
86
|
- lib
|
|
102
87
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
103
88
|
requirements:
|
|
@@ -111,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
111
96
|
version: '0'
|
|
112
97
|
requirements:
|
|
113
98
|
- JDK >= 8
|
|
114
|
-
rubygems_version: 4.0.
|
|
99
|
+
rubygems_version: 4.0.10
|
|
115
100
|
specification_version: 4
|
|
116
101
|
summary: Fill out or extract field values from simple fillable PDF forms using iText.
|
|
117
102
|
test_files: []
|
data/.github/workflows/lint.yml
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
name: Lint
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- master
|
|
7
|
-
pull_request:
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
test:
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
name: Rubocop
|
|
13
|
-
|
|
14
|
-
steps:
|
|
15
|
-
- uses: actions/checkout@v4
|
|
16
|
-
- name: Set up latest Ruby
|
|
17
|
-
uses: ruby/setup-ruby@v1
|
|
18
|
-
with:
|
|
19
|
-
ruby-version: 'ruby'
|
|
20
|
-
bundler-cache: true
|
|
21
|
-
- name: Run Rubocop
|
|
22
|
-
run: bin/lint --no-fix
|
data/.github/workflows/test.yml
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
name: Test
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
pull_request:
|
|
8
|
-
schedule:
|
|
9
|
-
- cron: '0 0 * * *'
|
|
10
|
-
|
|
11
|
-
jobs:
|
|
12
|
-
test:
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
name: Ruby ${{ matrix.ruby }} / Java ${{ matrix.java }}
|
|
15
|
-
strategy:
|
|
16
|
-
fail-fast: false
|
|
17
|
-
matrix:
|
|
18
|
-
ruby: [ '4.0', '3.4', '3.3', '3.2', '3.1', '3.0', '2.7', '2.6', '2.5', '2.4' ]
|
|
19
|
-
java: [ '8', '11', '17', '21', '23', '25' ]
|
|
20
|
-
|
|
21
|
-
steps:
|
|
22
|
-
- uses: actions/checkout@v4
|
|
23
|
-
- name: Set up Java ${{ matrix.java }}
|
|
24
|
-
uses: actions/setup-java@v4
|
|
25
|
-
with:
|
|
26
|
-
distribution: 'temurin'
|
|
27
|
-
java-version: ${{ matrix.java }}
|
|
28
|
-
- name: Set up Ruby ${{ matrix.ruby }}
|
|
29
|
-
uses: ruby/setup-ruby@v1
|
|
30
|
-
with:
|
|
31
|
-
ruby-version: ${{ matrix.ruby }}
|
|
32
|
-
bundler-cache: true
|
|
33
|
-
cache-version: java-${{ matrix.java }}
|
|
34
|
-
- name: Install dependencies
|
|
35
|
-
run: bundle install && bundle exec appraisal install
|
|
36
|
-
- name: Run tests
|
|
37
|
-
run: bundle exec appraisal rake test
|
data/.gitignore
DELETED
data/.rubocop.yml
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
plugins:
|
|
2
|
-
- rubocop-md
|
|
3
|
-
- rubocop-minitest
|
|
4
|
-
- rubocop-performance
|
|
5
|
-
- rubocop-rake
|
|
6
|
-
|
|
7
|
-
AllCops:
|
|
8
|
-
TargetRubyVersion: 2.4.0
|
|
9
|
-
NewCops: enable
|
|
10
|
-
Exclude:
|
|
11
|
-
- .git/**/*
|
|
12
|
-
- vendor/bundle/**/*
|
|
13
|
-
|
|
14
|
-
Gemspec/RequiredRubyVersion:
|
|
15
|
-
Enabled: false
|
|
16
|
-
|
|
17
|
-
Layout/EmptyLineAfterGuardClause:
|
|
18
|
-
Enabled: false
|
|
19
|
-
|
|
20
|
-
Layout/IndentationConsistency:
|
|
21
|
-
Exclude:
|
|
22
|
-
- README.md
|
|
23
|
-
|
|
24
|
-
Layout/InitialIndentation:
|
|
25
|
-
Exclude:
|
|
26
|
-
- README.md
|
|
27
|
-
|
|
28
|
-
Layout/LineLength:
|
|
29
|
-
Exclude:
|
|
30
|
-
- README.md
|
|
31
|
-
- fillable-pdf.gemspec
|
|
32
|
-
Max: 120
|
|
33
|
-
AllowedPatterns: ['^(\s*#)']
|
|
34
|
-
|
|
35
|
-
Layout/SpaceInsideHashLiteralBraces:
|
|
36
|
-
Enabled: false
|
|
37
|
-
|
|
38
|
-
Lint/ConstantDefinitionInBlock:
|
|
39
|
-
Exclude:
|
|
40
|
-
- lib/fillable-pdf/itext.rb
|
|
41
|
-
|
|
42
|
-
Metrics/MethodLength:
|
|
43
|
-
Max: 12
|
|
44
|
-
|
|
45
|
-
Naming/AccessorMethodName:
|
|
46
|
-
Enabled: false
|
|
47
|
-
|
|
48
|
-
Naming/FileName:
|
|
49
|
-
Enabled: false
|
|
50
|
-
|
|
51
|
-
Style/Documentation:
|
|
52
|
-
Enabled: false
|
|
53
|
-
|
|
54
|
-
Style/FrozenStringLiteralComment:
|
|
55
|
-
Enabled: false
|
|
56
|
-
|
|
57
|
-
Style/GuardClause:
|
|
58
|
-
Enabled: false
|
|
59
|
-
|
|
60
|
-
Style/HashSyntax:
|
|
61
|
-
Enabled: false
|
|
62
|
-
|
|
63
|
-
Style/MutableConstant:
|
|
64
|
-
Enabled: false
|
data/Appraisals
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
appraise 'rjb-1.6-base64-0.1' do
|
|
2
|
-
gem 'rjb', '~> 1.6.0'
|
|
3
|
-
gem 'base64', '~> 0.1.0'
|
|
4
|
-
end
|
|
5
|
-
|
|
6
|
-
appraise 'rjb-1.6-base64-0.2' do
|
|
7
|
-
gem 'rjb', '~> 1.6.0'
|
|
8
|
-
gem 'base64', '~> 0.2.0'
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
appraise 'rjb-1.6-base64-0.3' do
|
|
12
|
-
gem 'rjb', '~> 1.6.0'
|
|
13
|
-
gem 'base64', '~> 0.3.0'
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
appraise 'rjb-1.7-base64-0.1' do
|
|
17
|
-
gem 'rjb', '~> 1.7.0'
|
|
18
|
-
gem 'base64', '~> 0.1.0'
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
appraise 'rjb-1.7-base64-0.2' do
|
|
22
|
-
gem 'rjb', '~> 1.7.0'
|
|
23
|
-
gem 'base64', '~> 0.2.0'
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
appraise 'rjb-1.7-base64-0.3' do
|
|
27
|
-
gem 'rjb', '~> 1.7.0'
|
|
28
|
-
gem 'base64', '~> 0.3.0'
|
|
29
|
-
end
|
data/Gemfile
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
source 'https://rubygems.org'
|
|
2
|
-
|
|
3
|
-
# Specify your gem's dependencies in cloudflare-turnstile-rails.gemspec
|
|
4
|
-
gemspec
|
|
5
|
-
|
|
6
|
-
# A Ruby library for testing your library against different versions of dependencies
|
|
7
|
-
gem 'appraisal'
|
|
8
|
-
|
|
9
|
-
group :development do
|
|
10
|
-
gem 'rake'
|
|
11
|
-
|
|
12
|
-
# Code Linting
|
|
13
|
-
gem 'rubocop', require: false
|
|
14
|
-
gem 'rubocop-md', require: false
|
|
15
|
-
gem 'rubocop-minitest', require: false
|
|
16
|
-
gem 'rubocop-performance', require: false
|
|
17
|
-
gem 'rubocop-rake', require: false
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
group :test do
|
|
21
|
-
gem 'minitest'
|
|
22
|
-
end
|
data/Rakefile
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
require 'bundler/gem_tasks'
|
|
2
|
-
require 'rake/testtask'
|
|
3
|
-
require 'rubocop/rake_task'
|
|
4
|
-
|
|
5
|
-
Rake::TestTask.new(:test) do |t|
|
|
6
|
-
t.libs << 'test'
|
|
7
|
-
t.libs << 'lib'
|
|
8
|
-
t.test_files = FileList['test/**/*_test.rb']
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
RuboCop::RakeTask.new
|
|
12
|
-
|
|
13
|
-
task default: %i[test rubocop]
|
data/bin/console
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
require 'bundler/setup'
|
|
4
|
-
require 'fillable-pdf'
|
|
5
|
-
|
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
|
8
|
-
|
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
10
|
-
# require 'pry'
|
|
11
|
-
# Pry.start
|
|
12
|
-
|
|
13
|
-
require 'irb'
|
|
14
|
-
IRB.start
|
data/bin/lint
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
RESET_COLOR='\033[0m'
|
|
4
|
-
HIGHLIGHT_COLOR='\033[0;35m'
|
|
5
|
-
SUCCESS_COLOR='\033[0;32m'
|
|
6
|
-
ERROR_COLOR='\033[0;31m'
|
|
7
|
-
|
|
8
|
-
clear
|
|
9
|
-
|
|
10
|
-
# linter configuration paths
|
|
11
|
-
RUBOCOP_CONFIG=.rubocop.yml
|
|
12
|
-
|
|
13
|
-
# Checking for existence of configuration files...
|
|
14
|
-
test -e ${RUBOCOP_CONFIG} || { echo -e "${ERROR_COLOR}"ERROR: ${RUBOCOP_CONFIG} not found."${RESET_COLOR}"; exit 1; }
|
|
15
|
-
|
|
16
|
-
# Running linters
|
|
17
|
-
echo -e "${HIGHLIGHT_COLOR}"Linting Ruby on Rails using RuboCop..."${RESET_COLOR}"
|
|
18
|
-
if [[ "$1" == "--no-fix" ]]; then
|
|
19
|
-
bundle exec rubocop || { valid=false; }
|
|
20
|
-
else
|
|
21
|
-
bundle exec rubocop --autocorrect-all || { valid=false; }
|
|
22
|
-
fi
|
|
23
|
-
|
|
24
|
-
# Printing summary
|
|
25
|
-
if [[ "$valid" == false ]]; then
|
|
26
|
-
echo -e "${ERROR_COLOR}"ERROR: Lint errors have been found in your code."${RESET_COLOR}"
|
|
27
|
-
exit 1
|
|
28
|
-
else
|
|
29
|
-
echo -e "${SUCCESS_COLOR}"SUCCESS: All lints have completed without errors."${RESET_COLOR}"
|
|
30
|
-
fi
|
data/bin/setup
DELETED
data/ext/commons-9.4.0.jar
DELETED
|
Binary file
|
data/ext/layout-9.4.0.jar
DELETED
|
Binary file
|
data/ext/slf4j-simple-2.0.17.jar
DELETED
|
Binary file
|
data/fillable-pdf.gemspec
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
lib = File.expand_path('lib', __dir__)
|
|
2
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
|
-
require 'fillable-pdf/version'
|
|
4
|
-
|
|
5
|
-
Gem::Specification.new do |spec|
|
|
6
|
-
spec.name = 'fillable-pdf'
|
|
7
|
-
spec.version = FillablePDF::VERSION
|
|
8
|
-
spec.authors = ['Vadim Kononov']
|
|
9
|
-
spec.email = ['vadim@poetic.com']
|
|
10
|
-
|
|
11
|
-
spec.summary = 'Fill out or extract field values from simple fillable PDF forms using iText.'
|
|
12
|
-
spec.description = 'FillablePDF is an extremely simple and lightweight utility that bridges iText and Ruby in order to fill out fillable PDF forms or extract field values from previously filled out PDF forms.'
|
|
13
|
-
spec.homepage = 'https://github.com/vkononov/fillable-pdf'
|
|
14
|
-
spec.license = 'MIT'
|
|
15
|
-
spec.required_ruby_version = Gem::Requirement.new('>= 2.4.0')
|
|
16
|
-
|
|
17
|
-
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
|
18
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(example|test|spec|features)/}) }
|
|
19
|
-
end
|
|
20
|
-
spec.bindir = 'exe'
|
|
21
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
22
|
-
spec.require_paths = %w[ext lib]
|
|
23
|
-
|
|
24
|
-
spec.add_dependency 'base64', '~> 0.1'
|
|
25
|
-
spec.add_dependency 'fiddle', '>= 1.0'
|
|
26
|
-
spec.add_dependency 'rjb', '~> 1.6'
|
|
27
|
-
spec.requirements << 'JDK >= 8'
|
|
28
|
-
|
|
29
|
-
spec.metadata = {
|
|
30
|
-
'rubygems_mfa_required' => 'true'
|
|
31
|
-
}
|
|
32
|
-
end
|
data/images/blank.png
DELETED
|
Binary file
|
data/images/checked.png
DELETED
|
Binary file
|
data/images/distinct.png
DELETED
|
Binary file
|