combine_pdf 0.1.21 → 0.1.22

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: de5890a0bbc35644a9438b7b2c34aeb562edd59f
4
- data.tar.gz: e7af63840188c28b12515c37c02ea87fc2a22d6b
3
+ metadata.gz: f71a6872e4bea29d177b1945949b8acc805eaadd
4
+ data.tar.gz: c2870423a17e60ad9b13442715cd6bde88d7a34f
5
5
  SHA512:
6
- metadata.gz: cee07e844a7890f815f6af4af80ba7cecc952df630f158d7265e0102c2f8719ac7a1b5ca05e3a9d5a0e53b1d247eebb49671bfc203f946d276b32beeb3223616
7
- data.tar.gz: 3a19e222a63e1627f91fd9fe5058ca95370667ad24ae66db1312a268e781ccb067a7d422788e17000006bb3c1aad4b2bdf1fe1d1c4748a96f0ba5c8a7f687082
6
+ metadata.gz: d2b34183aa4f4d17502093757a52828b566dcb98df999456c5c71cee9ea3e011f3beeaee9620c6c56f5e1c1ad5f6ddfa91167460f610f904e3d6844a977c4adb
7
+ data.tar.gz: 12307c13e1b2f61da61538b1c056b7ca375fa3babae3d35aae8a38d87154b17409146a5caa9f9e0bd562270c353b17e72190d367d95db634bb1dc332d39d100a
@@ -2,6 +2,12 @@
2
2
 
3
3
  ***
4
4
 
5
+ Change log v.0.1.22
6
+
7
+ **fix**: a tested fix for issue #19, where Acrobat Reader would raise an error if page objects in the Catalog were copied by reference instead of copied in full and each was assigned different a unique object id. (possibly an Acrobat Reader Issue workaround) The issue was resolved by exempting page objects from the duplication reduction algorithm, and in this way, forcing duplicates to be copied rather then referenced in the Catalog object.
8
+
9
+ ***
10
+
5
11
  Change log v.0.1.21
6
12
 
7
13
  **fix**: an attempted fix for issue #19, where the xref table wasn't read on Acrobat Reader, probably due to a double EOL marker at the end of each entry.
@@ -506,7 +506,9 @@ module CombinePDF
506
506
  object.each {|it| add_referenced(it)}
507
507
  return true
508
508
  when object.is_a?(Hash)
509
- if object[:is_reference_only] && object[:referenced_object]
509
+ if object[:is_reference_only] && object[:referenced_object] && object[:referenced_object].is_a?(Hash) && object[:referenced_object][:Type] == :Page
510
+ @objects << object[:referenced_object]
511
+ elsif object[:is_reference_only] && object[:referenced_object]
510
512
  found_at = @objects.find_index object[:referenced_object]
511
513
  if found_at
512
514
  #if the objects are equal, they might still be different objects!
@@ -1,3 +1,3 @@
1
1
  module CombinePDF
2
- VERSION = "0.1.21"
2
+ VERSION = "0.1.22"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: combine_pdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.21
4
+ version: 0.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boaz Segev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-15 00:00:00.000000000 Z
11
+ date: 2015-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-rc4