I need help testing Aspose.Words Cloud with trial version

I need help testing Aspose.Words Cloud with trial version.

What I want to do is test ‘words to html’ using cloud sdk for java .
However, a maven dependency exception is thrown.

Please let me know what I am missing.

@pom.xml
Referring to Aspose.Words Cloud | Java SDK to Process Cloud Documents,
Added and .

@ java code
import com.aspose.words.cloud.ApiClient;
import com.aspose.words.cloud.api.WordsApi;
import com.aspose.words.cloud.model.SaveOptionsData;
import com.aspose.words.cloud.model.SaveResponse;
import com.aspose.words.cloud.model.requests.SaveAsRequest;
import com.aspose.words.cloud.model.requests.UploadFileRequest;

String clientId = “####-####-####-####-####”;
String secret = “##################”;
WordsApi wordsApi = new WordsApi(new ApiClient(clientId, secret));

String fileName = “test_multi_pages.docx”;
String format = “html”;
String destName = “Out_test_multi_pages.html”;

// Upload original document to Cloud Storage
wordsApi.uploadFile(new UploadFileRequest(new File(fileName), “”, null));

SaveAsRequest request = new SaveAsRequest(fileName,new SaveOptionsData().saveFormat(format).fileName(destName),null,null,null,null,null);
SaveResponse result = wordsApi.saveAs(request);


@ Q&A

  1. maven cannot read aspose-words-cloud-22.6.0.jar, or a message indicating that it is not a valid ZIP file is output.

  2. As an alternative, download the jar from Aspose.Words | Java Library to Process Document Formats to Aspose.Words for Java 22.5 local pc and add the dependency.

  • The downloaded jar has an issue that it cannot be imported because the classes ApiClient, WordsApi, SaveOptionsData etc… do not exist.

@sonaspo85 Your question is related to Cloud version of Aspose.Words. I will move it to the appropriate forum. My colleagues will help you shortly.

This topic has been moved to the related forum: I need help testing Aspose.Words Cloud with trial version - Free Support Forum - aspose.cloud