pdf-reader 2.9.1 → 2.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +3 -0
- data/lib/pdf/reader/object_hash.rb +6 -4
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc98ab07b3c66f13f663ea5faf8132b45d769912e0da737917dd054e38318ede
|
4
|
+
data.tar.gz: 0f2928d9778b5b3ea8fca5e723a2b3fa6f275df70b02f1eb4385e077c535ac78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 210cd8c8cef93b0e0fac1446c091c2a62772ffe8b1786627089e5a330ca7defd501df7cccc0b48d326d38ff74318b162e512220e8a4460260bebe7da0ef8b757
|
7
|
+
data.tar.gz: 047e7f6641411557b1d3b50035dbdf55647c63deede273b6ce4442230b85372045494b81e88c1ffcaa09a7c5ea26823ee33b33c3bf82013328d0e32a95021284
|
data/CHANGELOG
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
v2.9.2 (20th February 2022)
|
2
|
+
- Fix PDF::Reader::ObjectHash#page_references to return an Array of PDF::Reader::Reference (http://github.com/yob/pdf-reader/pull/444)
|
3
|
+
|
1
4
|
v2.9.1 (4th February 2022)
|
2
5
|
- Fix exception in Page#walk introduced in 2.9.0 (http://github.com/yob/pdf-reader/pull/442)
|
3
6
|
- Other small bug fixes
|
@@ -571,12 +571,14 @@ class PDF::Reader
|
|
571
571
|
# the Array is significant and matches the page ordering of the document
|
572
572
|
#
|
573
573
|
def get_page_objects(obj)
|
574
|
-
|
574
|
+
derefed_obj = deref_hash(obj)
|
575
|
+
|
576
|
+
if derefed_obj[:Type] == :Page
|
575
577
|
[obj]
|
576
|
-
elsif
|
577
|
-
kids = deref_array(
|
578
|
+
elsif derefed_obj[:Kids]
|
579
|
+
kids = deref_array(derefed_obj[:Kids]) || []
|
578
580
|
kids.map { |kid|
|
579
|
-
get_page_objects(
|
581
|
+
get_page_objects(kid)
|
580
582
|
}.flatten
|
581
583
|
else
|
582
584
|
raise MalformedPDFError, "Expected Page or Pages object"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdf-reader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.9.
|
4
|
+
version: 2.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Healy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -288,9 +288,9 @@ licenses:
|
|
288
288
|
- MIT
|
289
289
|
metadata:
|
290
290
|
bug_tracker_uri: https://github.com/yob/pdf-reader/issues
|
291
|
-
changelog_uri: https://github.com/yob/pdf-reader/blob/v2.9.
|
292
|
-
documentation_uri: https://www.rubydoc.info/gems/pdf-reader/2.9.
|
293
|
-
source_code_uri: https://github.com/yob/pdf-reader/tree/v2.9.
|
291
|
+
changelog_uri: https://github.com/yob/pdf-reader/blob/v2.9.2/CHANGELOG
|
292
|
+
documentation_uri: https://www.rubydoc.info/gems/pdf-reader/2.9.2
|
293
|
+
source_code_uri: https://github.com/yob/pdf-reader/tree/v2.9.2
|
294
294
|
post_install_message:
|
295
295
|
rdoc_options:
|
296
296
|
- "--title"
|