Method: EasyPdfCloud::Client#convert

Defined in:
lib/easy_pdf_cloud.rb

#convert(filename, input_type, output_type, workflow_id = nil) ⇒ Object



70
71
72
73
74
75
76
77
78
79
80
# File 'lib/easy_pdf_cloud.rb', line 70

def convert(filename, input_type, output_type, workflow_id=nil)
  check_access_token
  out_filepath = nil
  wid = workflow_id || @options["workflow_id"]
  if wid
    out_filepath = workflow(wid).convert(filename, input_type, output_type)
  else
    raise "No workflow id was specified"
  end
  return out_filepath
end