Skip to content

Commit

Permalink
fix issue #35 & bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Boaz Segev authored and Boaz Segev committed Nov 6, 2015
1 parent 354ed75 commit ddd884a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

***

Change log v.0.2.11

**Fix**: fix for issue #35 , which was caused by the broken fix for issue #34. Credit to Davek Rupinski for pointing out the issue.

***

Change log v.0.2.10

**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.
Expand Down
2 changes: 1 addition & 1 deletion lib/combine_pdf/page_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ def contents
end
#initializes the content stream in case it was not initialized before
def init_contents
self[:Contents] = self[:Contents][:referenced_object][:indirect_without_dictionary] if self[:Contents][:referenced_object] && self[:Contents][:referenced_object][:indirect_without_dictionary]
self[:Contents] = self[:Contents][:referenced_object][:indirect_without_dictionary] if self[:Contents].is_a?(Hash) && self[:Contents][:referenced_object] && self[:Contents][:referenced_object].is_a?(Hash) && self[:Contents][:referenced_object][:indirect_without_dictionary]
self[:Contents].delete({ is_reference_only: true , referenced_object: {indirect_reference_id: 0, raw_stream_content: ''} })
# wrap content streams
insert_content 'q', 0
Expand Down
2 changes: 1 addition & 1 deletion lib/combine_pdf/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module CombinePDF
VERSION = "0.2.10"
VERSION = "0.2.11"
end

0 comments on commit ddd884a

Please sign in to comment.