Hi!
We are using aspose to convert Word Documents to HTML.
A storage in aspose linked to our S3 bucket was also created, it is called “aspose-docs”
To convert the Word Doc to HTML we are using SaveAsOnlineRequest, here is the code snippet:
options = AsposeWordsCloud::HtmlSaveOptionsData.new(
SaveFormat: 'html',
FileName: "#{file_name_without_extension}.html",
PrettyFormat: true,
ExportDocumentProperties: true,
ExportFontResources: true,
FontsFolder: folder_name,
ImagesFolder: folder_name,
OfficeMathOutputMode: 'MathML',
ResourceFolder: folder_name,
ZipOutput: true,
StorageName: 'aspose-docs'
)
save_request = SaveAsOnlineRequest.new(document: file_name, save_options_data: options)
@words_api.save_as_online(save_request)
Here is an example of the the values for the variables we are using:
file_name = “test_doc.docx”
file_name_without_extension = “test_doc”
folder_name = “documents/test_doc_docx/”
That folder already exists in S3 and contains the original Word Doc that is “test_doc.docx”
As you can see, in the options we are setting the StorageName field with the name of our storage created in aspose.
I’m assuming that by setting that StorageName, the save_as_online will store the generated files inside that S3 bucket.
Is there a missed step on our end for that to happen? or is there another way to get the generated file from the save_as_online response that we can then store in S3?