pdf_ravager 0.2.1 → 0.2.2
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/CHANGELOG.md +16 -2
- data/lib/pdf_ravager/strategies/acro_form.rb +5 -1
- data/lib/pdf_ravager/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4db6d868d32debfef553438ca9fb9d198cd8e11e
|
4
|
+
data.tar.gz: 08bccdb4d56b03694fdc9294dc5809faab84a119
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 922496f1ed9b2d216b86ca57f8481391445f9c64f117ad85a5c68a95f65231f481e13ab6199c3e1982676ad992bad2b3daf8c79ad94abf3f843091e1501b8935
|
7
|
+
data.tar.gz: e966b3a225761ff196d51317e6ecb88ee44cd75206f037550a6c050d1f4a8b7b653c53641d72f29a145376fc2cc12dfe2fe6dd15ee49943c10ade967a56e0342
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,22 @@
|
|
1
|
-
## 0.2.
|
1
|
+
## 0.2.2 (2014-08-21)
|
2
|
+
|
3
|
+
Features:
|
4
|
+
|
5
|
+
- Make AcroForms strategy smarter by attempting full SOM path match
|
6
|
+
|
7
|
+
## 0.2.1 (2014-04-02)
|
8
|
+
|
9
|
+
Bugfixes:
|
10
|
+
|
11
|
+
- Fix rich text field type not setting values properly
|
12
|
+
- Fix `:smart` strategy not applying read-only properly
|
13
|
+
|
14
|
+
## 0.2.0 (2014-03-31)
|
2
15
|
|
3
16
|
Features:
|
4
17
|
|
5
18
|
- Deprecate global `pdf` convenience method
|
6
19
|
- Deprecate name option to `PDFRavager::Template.new`
|
7
20
|
- Move PDF population methods into strategies
|
8
|
-
- Speed up PDF population by default (i.e.
|
21
|
+
- Speed up PDF population by default (i.e. `:smart` strategy) by avoiding XFA
|
22
|
+
population when possible
|
@@ -9,7 +9,11 @@ module PDFRavager
|
|
9
9
|
def set_field_values(template)
|
10
10
|
template.fields.select{|f| f.respond_to?(:acro_form_value)}.select do |f|
|
11
11
|
begin
|
12
|
-
|
12
|
+
# first assume the user has provided the full/raw SOM path
|
13
|
+
unless @afields.setField(f.acro_form_name, f.acro_form_value)
|
14
|
+
# if that fails, try setting the shorthand version of the path
|
15
|
+
@afields.setField(FieldTypes::AcroForm::SOM.short_name(f.acro_form_name), f.acro_form_value)
|
16
|
+
end
|
13
17
|
rescue java.lang.NullPointerException
|
14
18
|
false
|
15
19
|
end
|
data/lib/pdf_ravager/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdf_ravager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abe Voelker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|