Method: Aspose::Cloud::Words::Extractor#get_text
- Defined in:
- lib/Words/extractor.rb
#get_text ⇒ Object
Gets Text items list from document
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/Words/extractor.rb', line 15 def get_text begin if @filename == '' raise 'Base file not specified.' end str_uri = $product_uri + '/words/' + @filename + '/textItems' 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['TextItems']['List'] else return false end rescue Exception=>e print e end end |