combine_pdf 0.1.8 → 0.1.9

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: 01bc76f1d54a27d2c7eb98b55a37655d48edd496
4
- data.tar.gz: 809d1607c8142ce61b31b078b3f3b24ff2716a05
3
+ metadata.gz: 54fe3a4a2dc8031d7903927a20cd8ab2698915b9
4
+ data.tar.gz: 7e01b142f7ab89fad68ecbff4b8035da2b1c3226
5
5
  SHA512:
6
- metadata.gz: ce3db7d462887c3ef9e38e675efae4d8ddd5f4a18636566f695ccb3e5fa357e722c463f5d383889bcd67e5f15da65838549fe3d034aa8fd0adf22f3a9b2deca8
7
- data.tar.gz: 0744547ed7fcdbb415925248ffa0b9e766269b90c236c30904a396dbfdd121dfe6ad3ac8f8fac72ea371dbf2ed47cb29fcdc9f9b8d956e6a03fff1354dbfe668
6
+ metadata.gz: d7696ec1f7222fc3ee6e4bd27736bd9ad6115b9ae1ee44eba333f1ce6494a5d864cabc9e8d76897d7fe0d651e4cec8fef0ef6d6ea84e5ab2036c1996fa820207
7
+ data.tar.gz: 59c72be7a53302ff6516227ce1b1837a9f23881871a372f616c965f0b450e971be52201a521d3e94b968c709d3f51682472414ff47647bdf45e4f7475038e2b4
data/CHANGELOG.md CHANGED
@@ -2,9 +2,14 @@
2
2
 
3
3
  ***
4
4
 
5
+ Change log v.0.1.9
6
+
7
+ **fix**: possible fix for bug reported by lamphuongha, regarding PDF 1.5 streams. I await confirmation that the fix actually works, as I cannot seem to reproduce the whole spectrum of the bug on my system...
8
+
9
+
5
10
  Change log v.0.1.8
6
11
 
7
- **fix**: Fixed an issue reported by Saba, where PDF files that were written using bad practices (namely, without wrapping their content streams correctly) would not be stamped correctly due to changes in the space matrix (CTM). Fixed by wrapping all existing streams.
12
+ **fix**: Fixed an [issue reported by Saba](https://github.com/boazsegev/combine_pdf/issues/8), where PDF files that were written using bad practices (namely, without wrapping their content streams correctly) would not be stamped correctly due to changes in the space matrix (CTM). Fixed by wrapping all existing streams before stamping.
8
13
 
9
14
  ***
10
15
 
@@ -99,7 +99,8 @@ module CombinePDF
99
99
  id_array << stream_data.shift
100
100
  stream_data.shift
101
101
  end
102
- while stream_data[0].is_a? Hash
102
+ while id_array[0] && stream_data[0]
103
+ stream_data[0] = {indirect_without_dictionary: stream_data[0]} unless stream_data[0].is_a?(Hash)
103
104
  stream_data[0][:indirect_reference_id] = id_array.shift
104
105
  stream_data[0][:indirect_generation_number] = 0
105
106
  @parsed << stream_data.shift
@@ -1,3 +1,3 @@
1
1
  module CombinePdf
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
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.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boaz Segev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-18 00:00:00.000000000 Z
11
+ date: 2014-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-rc4