Skip to content

Commit ed38a07

Browse files
Updates for SDK v24.3
1 parent 203d179 commit ed38a07

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Import modules
2+
require './Common.rb'
3+
4+
# This example demonstrates how to convert and download document without using cloud storage
5+
class ConvertAndDownload
6+
def self.Run()
7+
apiInstance = GroupDocsViewerCloud::ViewApi.from_config($config)
8+
9+
format = "jpg"
10+
file = File.open("Resources/SampleFiles/sample.docx", "r")
11+
request = GroupDocsViewerCloud::ConvertAndDownloadRequest.new format, file
12+
response = apiInstance.convert_and_download(request)
13+
14+
puts("ConvertAndDownload completed: " + response.length)
15+
end
16+
end

0 commit comments

Comments
 (0)