hexapdf 0.11.0 → 0.11.1

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
  SHA256:
3
- metadata.gz: d9c9409476d9ff9efaf2a8c0fb2b2623f660676c19e0d920659f6d719a783ee1
4
- data.tar.gz: cb266922c5cdb6749e7a9954141e2b8b2094fcd44968bfa384e62478a184161c
3
+ metadata.gz: 24b0a91cc09c90d43c2be2e83f8f30701381da60d79ad993d16ffff17d243ac9
4
+ data.tar.gz: 0f7cd35f0196c7a11e37b5cb784e867fdfd75676ee490866f840847d35a2256b
5
5
  SHA512:
6
- metadata.gz: 7c7d5fb9e817d5a4a8fc7ad3f26deb075afa9dd504fda9dd7801dabbb76bcf819734cb86918ecb1c553e767125edfd47672cfeacdd648afbda81ab198e02f96f
7
- data.tar.gz: bafff7b14203d534cacf94fdfaf493657c05255fb1caf431fd0cc8b7ebdcfb4470d49a0d02a5d72c96fea51f0c4bc0fa6b9aaca89caf0a190e6879be1b49fbb3
6
+ metadata.gz: 729d5b3c23ed9c9ca1d1bb604cf0ad7838d90024295983725d314a108eee31519d361255d4c1166b4321d19cd5cf941b57d5aca1819c16aeccf8ef4a6baa6a81
7
+ data.tar.gz: 8a5355ced86a1326e3bf46eb5084f856c1df00acafc1058ecd56d0eaa4615ee69f73c695602e893d523599b799d9b46ca4d39265a4f84954dedb48b3eb5614ff
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.11.1 - 2019-11-19
2
+
3
+ ### Fixed
4
+
5
+ * [HexaPDF::Type::AcroForm::Form#find_root_fields] to work for documents where
6
+ not all pages have form fields
7
+
8
+
1
9
  ## 0.11.0 - 2019-11-19
2
10
 
3
11
  ### Added
data/CONTRIBUTERS CHANGED
@@ -1,5 +1,5 @@
1
1
  Count Name
2
2
  ======= ====
3
- 1089 Thomas Leitner <t_leitner@gmx.at>
3
+ 1091 Thomas Leitner <t_leitner@gmx.at>
4
4
  1 Stanislav (Stas) Katkov <sk@skylup.com>
5
5
  1 Daniel Kraus <bovender@bovender.de>
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.11.0
1
+ 0.11.1
@@ -67,7 +67,7 @@ module HexaPDF
67
67
  def find_root_fields
68
68
  result = []
69
69
  document.pages.each do |page|
70
- page[:Annots].each do |annot|
70
+ page[:Annots]&.each do |annot|
71
71
  if !annot.key?(:Parent) && annot.key?(:FT)
72
72
  result << document.wrap(annot, type: :XXAcroFormField)
73
73
  elsif annot.key?(:Parent)
@@ -37,6 +37,6 @@
37
37
  module HexaPDF
38
38
 
39
39
  # The version of HexaPDF.
40
- VERSION = '0.11.0'
40
+ VERSION = '0.11.1'
41
41
 
42
42
  end
@@ -40,7 +40,7 @@ describe HexaPDF::Writer do
40
40
  219
41
41
  %%EOF
42
42
  3 0 obj
43
- <</Producer(HexaPDF version 0.11.0)>>
43
+ <</Producer(HexaPDF version 0.11.1)>>
44
44
  endobj
45
45
  xref
46
46
  3 1
@@ -72,7 +72,7 @@ describe HexaPDF::Writer do
72
72
  141
73
73
  %%EOF
74
74
  6 0 obj
75
- <</Producer(HexaPDF version 0.11.0)>>
75
+ <</Producer(HexaPDF version 0.11.1)>>
76
76
  endobj
77
77
  2 0 obj
78
78
  <</Length 10>>stream
@@ -39,6 +39,7 @@ describe HexaPDF::Type::AcroForm::Form do
39
39
  it "finds the root fields" do
40
40
  @doc.pages.add[:Annots] = [{FT: :Tx1}, {FT: :Tx2, Parent: {FT: :Tx3}}]
41
41
  @doc.pages.add[:Annots] = [{Subtype: :Widget}]
42
+ @doc.pages.add
42
43
 
43
44
  result = [{FT: :Tx1}, {FT: :Tx3}]
44
45
  assert_equal(result, @acroform.find_root_fields.map(&:value))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hexapdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Leitner