Sha256: f2899007eaf488abd5a12130dd358a0695ced6db3908fff45c440abd04abb3cc

Contents?: true

Size: 1.78 KB

Versions: 2

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 asposecloudsdk
require File.dirname(File.dirname(File.dirname(__FILE__))) + '/lib/asposecloud'

app_sid = '****'
app_key = '****'

Aspose::Cloud::Common::AsposeApp.app_key = app_key
Aspose::Cloud::Common::AsposeApp.app_sid = app_sid
Aspose::Cloud::Common::AsposeApp.output_location = 'path/to/output/location'
Aspose::Cloud::Common::Product.set_base_product_uri('http://api.aspose.com/v1.1')

# Create object of pdf converter class
pdf_converter = Aspose::Cloud::Pdf::Converter.new('path/to/pdf/file/on/storage.pdf')

# Convert a local pdf file to any format (tiff,doc, etc) and store the output
# file locally
pdf_converter.convert_local_file("path/to/input/file.pdf",'output_filename_without_extension','output_file_extension')

# Convert a pdf file on storage to any format (tiff,doc, etc) and store the output
# file on storage. class variable @filename will be used to convert the file
pdf_converter.convert('doc')

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
asposecloud-1.1.2 Samples/Pdf/Test_Converter.rb
asposecloud-1.0.0 Samples/Pdf/Test_Converter.rb