def object_to_pdf(object)
      if object.nil?
        return 'null'
      elsif object.is_a?(String)
        return format_string_to_pdf object
      elsif object.is_a?(Symbol)
        return format_name_to_pdf object
      elsif object.is_a?(Array)
        return format_array_to_pdf object
      elsif object.is_a?(Integer) || object.is_a?(TrueClass) || object.is_a?(FalseClass)
        return object.to_s
      elsif object.is_a?(Numeric) # Float or other non-integer
        return sprintf('%f', object)
      elsif object.is_a?(Hash)
        return format_hash_to_pdf object
      else
        return ''
      end
    end
def object_to_pdf(object)
      if object.nil?
        return 'null'
      elsif object.is_a?(String)
        return format_string_to_pdf object
      elsif object.is_a?(Symbol)
        return format_name_to_pdf object
      elsif object.is_a?(Array)
        return format_array_to_pdf object
      elsif object.is_a?(Integer) || object.is_a?(TrueClass) || object.is_a?(FalseClass)
        return object.to_s
      elsif object.is_a?(Numeric) # Float or other non-integer
        return sprintf('%f', object)
      elsif object.is_a?(Hash)
        return format_hash_to_pdf object
      else
        return ''
      end
    end
Formats an object into PDF format. This is used my the PDF object to format the PDF file and it is used in the secure injection which is still being developed.