acrobat 0.1.0 → 0.3.0

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.
metadata CHANGED
@@ -1,229 +1,94 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acrobat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
- - Dominic Sisneros
8
- autorequire:
9
- bindir: bin
7
+ - dsisnero
8
+ bindir: exe
10
9
  cert_chain: []
11
- date: 2021-03-23 00:00:00.000000000 Z
10
+ date: 2025-01-01 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
- name: minitest
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '5.14'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '5.14'
27
- - !ruby/object:Gem::Dependency
28
- name: hoe-bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '1.4'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '1.4'
41
- - !ruby/object:Gem::Dependency
42
- name: hoe-yard
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">"
46
- - !ruby/object:Gem::Version
47
- version: '0.1'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">"
53
- - !ruby/object:Gem::Version
54
- version: '0.1'
55
- - !ruby/object:Gem::Dependency
56
- name: pry
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">"
60
- - !ruby/object:Gem::Version
61
- version: '0.0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">"
67
- - !ruby/object:Gem::Version
68
- version: '0.0'
69
- - !ruby/object:Gem::Dependency
70
- name: pry-byebug
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">"
74
- - !ruby/object:Gem::Version
75
- version: '0.0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">"
81
- - !ruby/object:Gem::Version
82
- version: '0.0'
83
- - !ruby/object:Gem::Dependency
84
- name: yard
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">"
88
- - !ruby/object:Gem::Version
89
- version: '0.0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">"
95
- - !ruby/object:Gem::Version
96
- version: '0.0'
97
- - !ruby/object:Gem::Dependency
98
- name: guard
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">"
102
- - !ruby/object:Gem::Version
103
- version: '0.0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">"
109
- - !ruby/object:Gem::Version
110
- version: '0.0'
111
- - !ruby/object:Gem::Dependency
112
- name: guard-minitest
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">"
116
- - !ruby/object:Gem::Version
117
- version: '0.0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">"
123
- - !ruby/object:Gem::Version
124
- version: '0.0'
125
- - !ruby/object:Gem::Dependency
126
- name: asciidoctor
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">"
130
- - !ruby/object:Gem::Version
131
- version: '0.0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">"
137
- - !ruby/object:Gem::Version
138
- version: '0.0'
139
- - !ruby/object:Gem::Dependency
140
- name: rdoc
13
+ name: win32ole
141
14
  requirement: !ruby/object:Gem::Requirement
142
15
  requirements:
143
16
  - - ">="
144
17
  - !ruby/object:Gem::Version
145
- version: '4.0'
146
- - - "<"
147
- - !ruby/object:Gem::Version
148
- version: '7'
149
- type: :development
18
+ version: '0'
19
+ type: :runtime
150
20
  prerelease: false
151
21
  version_requirements: !ruby/object:Gem::Requirement
152
22
  requirements:
153
23
  - - ">="
154
24
  - !ruby/object:Gem::Version
155
- version: '4.0'
156
- - - "<"
157
- - !ruby/object:Gem::Version
158
- version: '7'
159
- - !ruby/object:Gem::Dependency
160
- name: hoe
161
- requirement: !ruby/object:Gem::Requirement
162
- requirements:
163
- - - "~>"
164
- - !ruby/object:Gem::Version
165
- version: '3.22'
166
- type: :development
167
- prerelease: false
168
- version_requirements: !ruby/object:Gem::Requirement
169
- requirements:
170
- - - "~>"
171
- - !ruby/object:Gem::Version
172
- version: '3.22'
173
- description: |-
174
- <div class="paragraph">
175
- <p>The acrobat gem is a library that uses WIN32OLE to automate pdf functions. Adobe Reader or Adobe Acrobat must be installed and then you can fill forms and merge documents</p>
176
- </div>
25
+ version: '0'
26
+ description: Merge PDFs fill in forms, from ruby
177
27
  email:
178
28
  - dsisnero@gmail.com
179
29
  executables:
180
30
  - acrobat
181
31
  extensions: []
182
- extra_rdoc_files:
183
- - Manifest.txt
32
+ extra_rdoc_files: []
184
33
  files:
185
- - ".gitignore"
34
+ - ".rubocop.yml"
35
+ - ".rubocop/minitest.yml"
36
+ - ".rubocop/strict.yml"
37
+ - ".standard.yml"
38
+ - CHANGELOG.md
39
+ - CODE_OF_CONDUCT.md
186
40
  - Guardfile
187
- - History.adoc
188
- - LICENSE.adoc
189
- - Manifest.txt
190
- - README.adoc
41
+ - LICENSE.txt
42
+ - README.md
191
43
  - Rakefile
192
- - bin/acrobat
44
+ - examples/6030.17.antenna.pdf
45
+ - examples/6030.17.cm300.tx.pdf
46
+ - examples/form_field.rb
47
+ - examples/merge.rb
48
+ - exe/acrobat
49
+ - gemfiles/rubocop.gemfile
193
50
  - lib/acrobat.rb
194
51
  - lib/acrobat/app.rb
52
+ - lib/acrobat/avdoc.rb
195
53
  - lib/acrobat/jso.rb
196
54
  - lib/acrobat/pdoc.rb
197
- - test/acrobat_test.rb
198
- - test/test_helper.rb
55
+ - lib/acrobat/version.rb
56
+ - rbs_collection.yaml
57
+ - samples_other/background.js
58
+ - samples_other/find_word.vb
59
+ - samples_other/form.vb
60
+ - sig/generated/acrobat.rbs
61
+ - sig/generated/acrobat/app.rbs
62
+ - sig/generated/acrobat/avdoc.rbs
63
+ - sig/generated/acrobat/jso.rbs
64
+ - sig/generated/acrobat/pdoc.rbs
65
+ - sig/generated/acrobat/version.rbs
66
+ - sig/prototype/lib/acrobat/app.rbs
67
+ - sig/prototype/lib/acrobat/jso.rbs
68
+ - sig/prototype/lib/acrobat/pdoc.rbs
69
+ - vba/overlay.vba
199
70
  homepage: https://github.com/dsisnero/acrobat
200
71
  licenses:
201
72
  - MIT
202
73
  metadata:
203
74
  homepage_uri: https://github.com/dsisnero/acrobat
204
- bug_tracker_uri: https://github.com/dsisnero/acrobat/issues
205
75
  source_code_uri: https://github.com/dsisnero/acrobat
206
- changelog_uri: https://github.com/dsisnero/acrobat/blob/master/CHANGELOG.adoc
207
- post_install_message:
208
- rdoc_options:
209
- - "--main"
210
- - README.adoc
76
+ changelog_uri: https://github.com/dsisnero/acrobat/CHANGELOG.md
77
+ rdoc_options: []
211
78
  require_paths:
212
79
  - lib
213
80
  required_ruby_version: !ruby/object:Gem::Requirement
214
81
  requirements:
215
82
  - - ">="
216
83
  - !ruby/object:Gem::Version
217
- version: '0'
84
+ version: 3.0.0
218
85
  required_rubygems_version: !ruby/object:Gem::Requirement
219
86
  requirements:
220
87
  - - ">="
221
88
  - !ruby/object:Gem::Version
222
89
  version: '0'
223
90
  requirements: []
224
- rubygems_version: 3.2.14
225
- signing_key:
91
+ rubygems_version: 3.6.2
226
92
  specification_version: 4
227
- summary: <div class="paragraph"> <p>The acrobat gem is a library that uses WIN32OLE
228
- to automate pdf functions
93
+ summary: Automate Adobe Acrobat from Ruby
229
94
  test_files: []
data/.gitignore DELETED
@@ -1,32 +0,0 @@
1
- *.gem
2
- *.rbc
3
- /pkg/
4
- /spec/reports/
5
- /spec/examples.txt
6
- /test/tmp/
7
- /test/version_tmp/
8
- /tmp/
9
-
10
- # Used by dotenv library to load environment variables.
11
- # .env
12
-
13
-
14
- ## Documentation cache and generated files:
15
- /.yardoc/
16
- /_yardoc/
17
- /doc/
18
- /rdoc/
19
-
20
- ## Environment normalization:
21
- /.bundle/
22
- /vendor/bundle
23
- /lib/bundler/man/
24
-
25
- # for a library or gem, you might want to ignore these files since the code is
26
- # intended to run in multiple environments; otherwise, check them in:
27
- Gemfile.lock
28
- .ruby-version
29
- .ruby-gemset
30
-
31
- # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
32
- .rvmrc
data/History.adoc DELETED
@@ -1,6 +0,0 @@
1
- === 0.0.5/ 2017-01-20
2
-
3
- * 1 major enhancement
4
-
5
- * Birthday!
6
-
data/Manifest.txt DELETED
@@ -1,14 +0,0 @@
1
- .gitignore
2
- Guardfile
3
- History.adoc
4
- LICENSE.adoc
5
- Manifest.txt
6
- README.adoc
7
- Rakefile
8
- bin/acrobat
9
- lib/acrobat.rb
10
- lib/acrobat/app.rb
11
- lib/acrobat/jso.rb
12
- lib/acrobat/pdoc.rb
13
- test/acrobat_test.rb
14
- test/test_helper.rb
data/README.adoc DELETED
@@ -1,117 +0,0 @@
1
- = acrobat
2
- Dominic Sisneros <https://github.com/dsisnero[@dsisnero]
3
- //settings
4
- :page-layout: base
5
- :idprefix:
6
- :idseparator: -
7
- :source-language: ruby
8
- :language: {source-language}
9
- // Uris
10
- :uri-org: https://github.com/dsisnero
11
- :uri-repo: {uri-org}/acrobat
12
- :uri-issues: {uri-repo}/issues
13
- :uri-contributors: {uri-repo}/graphs/contributors
14
- :uri-rel-file-base: {uri-repo}/blob/master/
15
- :uri-rel-tree-base: {uri-repo}/tree/master/
16
- :uri-contribute: {uri-rel-file-base}CONTRIBUTING.adoc
17
- :uri-changelog: {uri-rel-file-base}CHANGELOG.adoc
18
- :uri-license: {uri-rel-file-base}LICENSE.adoc
19
-
20
- == DESCRIPTION:
21
-
22
- The acrobat gem is a library that uses WIN32OLE to automate pdf functions. Adobe Reader or Adobe Acrobat must be installed and then you can fill forms and merge documents
23
-
24
- == Requirements
25
-
26
- * Windows Adobe Acrobat installed
27
-
28
- == Install 0ptions
29
-
30
- acrobat can be installed using (a) the `gem install` command, (b) Bundler
31
-
32
- === (a) gem install
33
-
34
- Open a terminal and type
35
- $ gem install acrobat
36
-
37
- .Upgrading your installation
38
- [TIP]
39
- ====
40
- If you have an earlier version of acrobat installed you can update it using:
41
-
42
- $ gem update acrobat
43
-
44
- If you install a new version of the gem using `gem install` instead of
45
- gem update, you'll have multiple versions installed. If that's the
46
- case, use the following gem command to remove the old versions:
47
-
48
- $ gem cleanup acrobat
49
- ====
50
- === (b) Bundler
51
-
52
- . Create a Gemfile in the root folder of your project (or the current directory)
53
- . Add the `asciidoctor` gem to your Gemfile as follows:
54
- +
55
- [source]
56
- ----
57
- source 'https://rubygems.org'
58
- gem 'acrobat'
59
- # or specify the version explicitly
60
- # gem 'acrobat', '0.0.5'
61
- ----
62
-
63
- . Save the Gemfile
64
- . Open a terminal and install the gem using:
65
-
66
- $ bundle
67
-
68
- To upgrade the gem, specify the new version in the Gemfile and run `bundle` again.
69
- Using `bundle update` is *not* recommended as it will also update other gems, which may not be the desired result.
70
-
71
- == Usage
72
-
73
- [source,ruby]
74
- ----
75
-
76
- require 'acrobat'
77
- Adobe::Acrobat.run do |app|
78
- fields = {city: 'City', state: 'State', zip: 'zip'}
79
- doc = app.open('apd_document.pdf')
80
- doc.fill_form(fields)
81
- doc.show
82
- doc2 = app.open('another_doc.pdf')
83
- doc2.fill_form(fields)
84
- doc1.merge_doc(doc2)
85
- doc1.save_as(name: 'merged_doc.pdf', dir: 'tmp')
86
- end
87
-
88
-
89
-
90
- ----
91
-
92
- == Getting Help
93
-
94
-
95
- We encourage you to ask questions and discuss any aspects of the project on the discussion list, Twitter or IRC.
96
-
97
- Mailing list:: {uri-discuss}
98
-
99
-
100
- ifdef::env-github[]
101
- Further information and documentation about acrobat gem can be found on the project's website.
102
-
103
- {uri-project}/[Home] | {uri-news}[News] | {uri-docs}[Docs]
104
- endif::[]
105
-
106
- The project's source code, issue tracker, and sub-projects are on github
107
-
108
- Source repository (git):: {uri-repo}
109
- Issue tracker:: {uri-issues}
110
- acrobat organization on GitHub:: {uri-org}
111
-
112
- == Copyright and Licensing
113
-
114
- Copyright (C) 2012-2016 Dominic Sisneros and the acrobat-Ruby Project.
115
- Free use of this software is granted under the terms of the MIT License.
116
-
117
- See the {uri-license}[LICENSE] file for details.
data/bin/acrobat DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- abort "you need to write me"
data/test/acrobat_test.rb DELETED
@@ -1,36 +0,0 @@
1
- require_relative 'test_helper'
2
-
3
-
4
- require "acrobat"
5
-
6
-
7
-
8
- module Acrobat
9
-
10
- describe App do
11
-
12
-
13
- describe 'new' do
14
-
15
- it 'works' do
16
- assert true
17
- end
18
-
19
-
20
- it 'can be created' do
21
- app = App.new
22
- app.must_be_instance_of App
23
- end
24
-
25
- it 'has an ole_obj' do
26
- app = App.new
27
- app.ole_obj.must_be_instance_of WIN32OLE
28
- end
29
-
30
- end
31
-
32
-
33
- end
34
-
35
-
36
- end
data/test/test_helper.rb DELETED
@@ -1,13 +0,0 @@
1
- $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
-
3
- if RUBY_VERSION < '1.9.3'
4
- ::Dir.glob(::File.expand_path('../support/**/*.rb', __FILE__)).each { |f| require File.join(File.dirname(f), File.basename(f, '.rb')) }
5
- else
6
- ::Dir.glob(::File.expand_path('../support/**/*.rb', __FILE__)).each { |f| require_relative f }
7
- end
8
-
9
-
10
- require 'minitest/spec'
11
- require 'minitest/autorun'
12
- #require 'minitest/focus'
13
- #require 'minitest/utils'