Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
This Gist repository contains code snippet related to Aspose.Words Cloud SDK for Java

The Gist contains code snippets related to Aspose.Words Cloud SDK for Java. For more information on usage of these code snippets, please visit the following links

Convert PDF to DOCX using Aspose.Words Cloud SDK for Java.
// Get clientId and clientSecret from
String clientId = "c235e685-1aab-4cda-a95b-54afd63eb87f";
String clientSecret = "b8da4ee37494f2ef8da3c727f3a0acb9";
// create an object of ApiClient by providing user specific ClientID and Client Secret
// If baseUrl is null, WordsApi uses default apiClient = new,clientSecret,null);
// create an object of WordsApi by providing ApiClient as argument wordsApi = new;
// input PDF document
String inputFile = "demo.pdf";
// specify output format
String resultantFormat = "docx";
// specify the resultant file name
String resultantFile = "demo_Converted.docx";
// create an object to specify output file format saveOptions = new SaveOptionsData();
// set output format as DOCX
// Specify the conversion parameters request = new SaveAsRequest(inputFile, saveOptions, null, null, null, null, null);
// save the resultant DOCX file
SaveResponse result = wordsApi.saveAs(request);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment