hexapdf 0.11.0 → 0.11.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/CHANGELOG.md +8 -0
- data/CONTRIBUTERS +1 -1
- data/VERSION +1 -1
- data/lib/hexapdf/type/acro_form/form.rb +1 -1
- data/lib/hexapdf/version.rb +1 -1
- data/test/hexapdf/test_writer.rb +2 -2
- data/test/hexapdf/type/acro_form/test_form.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24b0a91cc09c90d43c2be2e83f8f30701381da60d79ad993d16ffff17d243ac9
|
4
|
+
data.tar.gz: 0f7cd35f0196c7a11e37b5cb784e867fdfd75676ee490866f840847d35a2256b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 729d5b3c23ed9c9ca1d1bb604cf0ad7838d90024295983725d314a108eee31519d361255d4c1166b4321d19cd5cf941b57d5aca1819c16aeccf8ef4a6baa6a81
|
7
|
+
data.tar.gz: 8a5355ced86a1326e3bf46eb5084f856c1df00acafc1058ecd56d0eaa4615ee69f73c695602e893d523599b799d9b46ca4d39265a4f84954dedb48b3eb5614ff
|
data/CHANGELOG.md
CHANGED
data/CONTRIBUTERS
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.11.
|
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]
|
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)
|
data/lib/hexapdf/version.rb
CHANGED
data/test/hexapdf/test_writer.rb
CHANGED
@@ -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.
|
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.
|
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))
|