combine_pdf 0.2.9 → 0.2.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8800e4ff5790f97b4526f460b81780f7d5deec44
4
- data.tar.gz: 5644183e1e91302bb6f302f9929fcd88018f92f5
3
+ metadata.gz: 49b95325420fb319caf809b8561b5cc0c36f2ec0
4
+ data.tar.gz: 041b7ce09c03155a2d52c27d7896392a7bb8021f
5
5
  SHA512:
6
- metadata.gz: e0439dd68f4f9e6b5b23a5f539c70f1eae22d7d46f1e598e1e36b1b9116808bcba555278f2da15e067978c645e26b92b1fa10f7d01901867db9105ac8ae0bef2
7
- data.tar.gz: 21bf0f1e6d5aff9ebb3a25efb3cbe17ce01b6349230c8e0f8fbb8bbb023f5783ab97c33f4dc389992807cd05f9246cc8daebe1ad4e7c3598c74fa912d54cdb1b
6
+ metadata.gz: 4ed41af538487a106fa106375e46d0cd2dd7ee5332d5925213d5ef3d0ab541d5e7ab993fd35c5aada47fb27a7443c9ea6d33bf296e3f6b3197ef80bc1305384c
7
+ data.tar.gz: 56b5232054327ef934a39cf727a14fb55ae277d1bfaa5e5c4ca3131944187129ee6e8a8cf986305575070ccfd83e8614268ecf90ffd331829eb7b7cbd95270a6
@@ -2,6 +2,12 @@
2
2
 
3
3
  ***
4
4
 
5
+ Change log v.0.2.10
6
+
7
+ **Fix**: fixed page stamping when the page's content was a referenced object instead or a direct array of content references. Credit to vitstradal for discovering the issue.
8
+
9
+ ***
10
+
5
11
  Change log v.0.2.9
6
12
 
7
13
  **Fix** hopefully fixed issue #33 ([NoMethodError undefined method `[]' for nil:NilClass](https://github.com/boazsegev/combine_pdf/issues/33)).
@@ -613,6 +613,7 @@ module CombinePDF
613
613
  end
614
614
  #initializes the content stream in case it was not initialized before
615
615
  def init_contents
616
+ self[:Contents] = self[:Contents][:referenced_object][:indirect_without_dictionary] if self[:Contents][:referenced_object] && self[:Contents][:referenced_object][:indirect_without_dictionary]
616
617
  self[:Contents].delete({ is_reference_only: true , referenced_object: {indirect_reference_id: 0, raw_stream_content: ''} })
617
618
  # wrap content streams
618
619
  insert_content 'q', 0
@@ -634,6 +635,7 @@ module CombinePDF
634
635
  raise TypeError, "expected a String or Hash object." unless object.is_a?(Hash)
635
636
  prep_content_array
636
637
  self[:Contents].insert location, object
638
+ self[:Contents].flatten!
637
639
  self
638
640
  end
639
641
 
@@ -1,4 +1,4 @@
1
1
  module CombinePDF
2
- VERSION = "0.2.9"
2
+ VERSION = "0.2.10"
3
3
  end
4
4
 
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.2.9
4
+ version: 0.2.10
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-10-30 00:00:00.000000000 Z
11
+ date: 2015-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-rc4