Sha256: 6cf4b6a53ba925920112800ab3a348d4634867391d9eb775ad5297dc4e8da8c9
Contents?: true
Size: 1.6 KB
Versions: 1
Compression:
Stored size: 1.6 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 WordTests < Test::Unit::TestCase def test_convert_local_file 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 word converter class converter = Aspose::Cloud::Words::Converter.new('file_on_storage.doc') converter.convert_local_file('./Data/test_convertlocal.docx','./Output/converted_file.pdf','pdf') assert_equal true, File.exist?('./Output/converted_file.pdf') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
asposecloud-1.0.0 | Tests/word_tests.rb |