Sha256: 810dde36d4371563e19b42f60deb7dca1fe8c58c1c5afc9cca57562f975d866e
Contents?: true
Size: 1.78 KB
Versions: 1
Compression:
Stored size: 1.78 KB
Contents
# Copyright (c) Aspose 2002-2014. All Rights Reserved. # # LICENSE: This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 3 # of the License, or (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://opensource.org/licenses/gpl-3.0.html>;. # # @package Aspose_Cloud_SDK_For_Ruby # @author Assad Mahmood Qazi <assad.mahmood@aspose.com> # @link https://github.com/asposeforcloud/Aspose_Cloud_SDK_For_Ruby/tree/revamp require 'test/unit' require_relative '../lib/asposecloud' class SlideTests < Test::Unit::TestCase def test_convert_slide Aspose::Cloud::Common::AsposeApp.app_key = '8356c76c7412f32bb85ae7472e842da4' Aspose::Cloud::Common::AsposeApp.app_sid = '8EB6E644-4A40-4B50-8012-135D1F8F7513' Aspose::Cloud::Common::AsposeApp.output_location = './Output/' Aspose::Cloud::Common::Product.set_base_product_uri('http://test.aspose.com/v1.1') # Create Object of folder class folder = Aspose::Cloud::AsposeStorage::Folder.new response = folder.upload_file './Data/test_convert_slide.pptx' assert_equal true, response # Create object of slides converter class slides_converter = Aspose::Cloud::Slides::Converter.new('test_convert_slide.pptx') assert_nothing_thrown 'Error' do slides_converter.convert(1,'png') end assert_equal true, File.exist?('./Output/test_convert_slide.png') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
asposecloud-1.0.0 | Tests/slide_tests.rb |