Method: CombinePDF::PDFOperations.connect_references_and_actual_values

Defined in:
lib/combine_pdf/operations.rb

.connect_references_and_actual_values(objects_array = [], hash_with_references = {}) ⇒ Object



240
241
242
243
244
245
246
247
248
249
250
# File 'lib/combine_pdf/operations.rb', line 240

def connect_references_and_actual_values(objects_array = [], hash_with_references = {})
  ret = true
  hash_with_references.each do |k,v|
    if v.is_a?(Hash) && v[:is_reference_only]
      ref_obj = PDFOperations.get_refernced_object( objects_array, v)
      hash_with_references[k] = ref_obj[:indirect_without_dictionary] if ref_obj.is_a?(Hash) && ref_obj[:indirect_without_dictionary]
      ret = false
    end
  end
  ret    
end