Convert Document to Different File Formats (RUBY SDK)

Skip to end of metadata
Go to start of metadata
This example allows you to convert documents to different file formats using Saaspose Words RUBY SDK.
app_sid = "77*********************"
app_key = "89************"

Common::SaasposeApp.new(app_sid, app_key)
$OutPutLocation = "C:\\";

Common::Product.setBaseProductUri("http://api.saaspose.com/v1.0")

outputFormat = "pdf"

# Creating the object of WordConverter Class 
wordconverter_object = Words::WordConverter.new("Sample.docx")

puts wordconverter_object.convert(outputFormat)

p 'File converted'
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.