231
232
233
234
235
236
237
238
|
# File 'lib/Pdf/document.rb', line 231
def get_document_property(property_name, folder_name = '', storage_type = 'Aspose', storage_name = '')
raise 'property_name not specified.' if property_name.empty?
str_uri = "#{@base_uri}/documentProperties/#{property_name}"
str_uri = Aspose::Cloud::Common::Utils.append_storage(str_uri,folder_name,storage_name,storage_type)
signed_str_uri = Aspose::Cloud::Common::Utils.sign(str_uri)
JSON.parse(RestClient.get(signed_str_uri, {:accept=>'application/json'}))['DocumentProperty']
end
|