pdf_ravager 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af97c49b1e6876971dd1d81e67f5169044970df8
4
- data.tar.gz: e5575521306846de1411f15f4b23ca1b601d5e65
3
+ metadata.gz: 4db6d868d32debfef553438ca9fb9d198cd8e11e
4
+ data.tar.gz: 08bccdb4d56b03694fdc9294dc5809faab84a119
5
5
  SHA512:
6
- metadata.gz: 36993a4b30050636d312d5df41d4542e7fbc6722c0da83fbe87d41e042aab3c4cc30735275ef35a9a67c791abb47c9c629b9847784c8db391190401421a13e9c
7
- data.tar.gz: bc2d3c2348865ac36164344aab42027374d62d2cdb6890ab14a0dc21a954deb89c12e979d43c7b1648ef21f585ea29710ff6ab2959adcb12a614c1aa6822fc23
6
+ metadata.gz: 922496f1ed9b2d216b86ca57f8481391445f9c64f117ad85a5c68a95f65231f481e13ab6199c3e1982676ad992bad2b3daf8c79ad94abf3f843091e1501b8935
7
+ data.tar.gz: e966b3a225761ff196d51317e6ecb88ee44cd75206f037550a6c050d1f4a8b7b653c53641d72f29a145376fc2cc12dfe2fe6dd15ee49943c10ade967a56e0342
@@ -1,8 +1,22 @@
1
- ## 0.2.0
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. :smart strategy) by avoiding XFA
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
- @afields.setField(FieldTypes::AcroForm::SOM.short_name(f.acro_form_name), f.acro_form_value)
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
@@ -1,3 +1,3 @@
1
1
  module PDFRavager
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
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.1
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-04-02 00:00:00.000000000 Z
11
+ date: 2014-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri