Method: Aspose::Cloud::Words::Extractor#get_drawing_object_list

Defined in:
lib/Words/extractor.rb

#get_drawing_object_listObject

Get the List of drawing object from document



177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
# File 'lib/Words/extractor.rb', line 177

def get_drawing_object_list
      
  begin

    if @filename == ''
      raise 'Base file not specified.'
    end

    str_uri = $product_uri + '/words/' + @filename + '/drawingObjects'
    signed_str_uri = Aspose::Cloud::Common::Utils.sign(str_uri)

    response_stream = RestClient.get(signed_str_uri,{:accept=>'application/json'})

    stream_hash = JSON.parse(response_stream)

    if(stream_hash['Code'] == 200)
      return stream_hash['DrawingObjects']['List']
    else
      return false
    end

  rescue Exception=>e
    print e
  end
      
end