combine_pdf 0.1.13 → 0.1.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -232,22 +232,22 @@ module CombinePDF
232
232
 
233
233
  case catalogs[:Type]
234
234
  when :Page
235
- holder = self
236
- if secure_injection
237
- catalogs.define_singleton_method("<<".to_sym) do |obj|
238
- obj = PDFOperations.copy_and_secure_for_injection obj
239
- PDFOperations.inject_to_page self, obj
240
- holder.add_referenced self # add new referenced objects
241
- self
242
- end
243
- else
244
- catalogs.define_singleton_method("<<".to_sym) do |obj|
245
- obj = PDFOperations.create_deep_copy obj
246
- PDFOperations.inject_to_page self, obj
247
- holder.add_referenced self # add new referenced objects
248
- self
249
- end
250
- end
235
+ # holder = self
236
+ # if secure_injection
237
+ # catalogs.define_singleton_method("<<".to_sym) do |obj|
238
+ # obj = PDFOperations.copy_and_secure_for_injection obj
239
+ # PDFOperations.inject_to_page self, obj
240
+ # holder.add_referenced self # add new referenced objects
241
+ # self
242
+ # end
243
+ # else
244
+ # catalogs.define_singleton_method("<<".to_sym) do |obj|
245
+ # obj = PDFOperations.create_deep_copy obj
246
+ # PDFOperations.inject_to_page self, obj
247
+ # holder.add_referenced self # add new referenced objects
248
+ # self
249
+ # end
250
+ # end
251
251
 
252
252
  # inheritance
253
253
  catalogs[:MediaBox] ||= inheritance_hash[:MediaBox] if inheritance_hash[:MediaBox]
@@ -262,6 +262,9 @@ module CombinePDF
262
262
  catalogs[:CropBox] = catalogs[:CropBox][:referenced_object][:indirect_without_dictionary] if catalogs[:CropBox].is_a?(Hash) && catalogs[:CropBox][:referenced_object].is_a?(Hash) && catalogs[:CropBox][:referenced_object][:indirect_without_dictionary]
263
263
  catalogs[:Rotate] = catalogs[:Rotate][:referenced_object][:indirect_without_dictionary] if catalogs[:Rotate].is_a?(Hash) && catalogs[:Rotate][:referenced_object].is_a?(Hash) && catalogs[:Rotate][:referenced_object][:indirect_without_dictionary]
264
264
 
265
+ catalogs.instance_eval {extend Page_Methods}
266
+ catalogs.secure_injection = secure_injection
267
+
265
268
  page_list << catalogs
266
269
  when :Pages
267
270
  page_list.push *(pages(catalogs[:Kids], secure_injection, inheritance_hash.dup )) unless catalogs[:Kids].nil?
@@ -1,3 +1,3 @@
1
1
  module CombinePDF
2
- VERSION = "0.1.13"
2
+ VERSION = "0.1.15"
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.13
4
+ version: 0.1.15
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-01-09 00:00:00.000000000 Z
11
+ date: 2015-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-rc4
@@ -75,6 +75,7 @@ files:
75
75
  - lib/combine_pdf/combine_pdf_fonts.rb
76
76
  - lib/combine_pdf/combine_pdf_methods.rb
77
77
  - lib/combine_pdf/combine_pdf_operations.rb
78
+ - lib/combine_pdf/combine_pdf_page.rb
78
79
  - lib/combine_pdf/combine_pdf_parser.rb
79
80
  - lib/combine_pdf/combine_pdf_pdf.rb
80
81
  - lib/combine_pdf/version.rb
@@ -98,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
99
  version: '0'
99
100
  requirements: []
100
101
  rubyforge_project:
101
- rubygems_version: 2.4.3
102
+ rubygems_version: 2.4.5
102
103
  signing_key:
103
104
  specification_version: 4
104
105
  summary: Combine, stamp and watermark PDF files in pure Ruby.