Method: Aspose::Cloud::Slides::Document#get_background
- Defined in:
- lib/Slides/document.rb
#get_background(slide_number, folder_name = '', storage_type = 'Aspose', storage_name = '') ⇒ Object
Get Background of a PowerPoint Slide
222 223 224 225 226 227 228 229 230 231 232 |
# File 'lib/Slides/document.rb', line 222 def get_background(, folder_name = '', storage_type = 'Aspose', storage_name = '') raise 'slide_number not specified.' if <= 0 str_uri = "#{@base_uri}/slides/#{}/background" 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) response = RestClient.get(signed_str_uri, {:accept=>'application/json'}) json = JSON.parse(response) json['Code'] == 200 ? json['Background'] : nil end |