combine_pdf 0.2.9 → 0.2.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/combine_pdf/page_methods.rb +2 -0
- data/lib/combine_pdf/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49b95325420fb319caf809b8561b5cc0c36f2ec0
|
4
|
+
data.tar.gz: 041b7ce09c03155a2d52c27d7896392a7bb8021f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ed41af538487a106fa106375e46d0cd2dd7ee5332d5925213d5ef3d0ab541d5e7ab993fd35c5aada47fb27a7443c9ea6d33bf296e3f6b3197ef80bc1305384c
|
7
|
+
data.tar.gz: 56b5232054327ef934a39cf727a14fb55ae277d1bfaa5e5c4ca3131944187129ee6e8a8cf986305575070ccfd83e8614268ecf90ffd331829eb7b7cbd95270a6
|
data/CHANGELOG.md
CHANGED
@@ -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
|
|
data/lib/combine_pdf/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-rc4
|