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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 07c734cf3cfc0abf1102f813976d4936d33b57815f114ce92224bbd605fe16a2
4
- data.tar.gz: f52b1751f83717a7bc96c56e8d830559d387fb430cfa6fa2a78604d98c7476f4
3
+ metadata.gz: cc98ab07b3c66f13f663ea5faf8132b45d769912e0da737917dd054e38318ede
4
+ data.tar.gz: 0f2928d9778b5b3ea8fca5e723a2b3fa6f275df70b02f1eb4385e077c535ac78
5
5
  SHA512:
6
- metadata.gz: 72fda8f6b32c20782adca6cca44d291c7cbe4ac9d858da5ed1c815af2a7d6680e3906cac47a8414923c8db639fd51365d9da8612c1c7f79a674b22448bb35cae
7
- data.tar.gz: fa79a29d80a36d37e1188769bf7991d5108bbe08b11711a7c9bb1741cedd3682b77afe219a24ae7844fdbf10b23ca3eb5434f4b9418d7002f07fb8edf9dd6e26
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
- if obj[:Type] == :Page
574
+ derefed_obj = deref_hash(obj)
575
+
576
+ if derefed_obj[:Type] == :Page
575
577
  [obj]
576
- elsif obj[:Kids]
577
- kids = deref_array(obj[:Kids]) || []
578
+ elsif derefed_obj[:Kids]
579
+ kids = deref_array(derefed_obj[:Kids]) || []
578
580
  kids.map { |kid|
579
- get_page_objects(deref_hash(kid) || {})
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.1
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-04 00:00:00.000000000 Z
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.1/CHANGELOG
292
- documentation_uri: https://www.rubydoc.info/gems/pdf-reader/2.9.1
293
- source_code_uri: https://github.com/yob/pdf-reader/tree/v2.9.1
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"