File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,15 +81,14 @@ dependencies {
8181
8282``` java
8383// For complete examples and data files, please go to https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-java-samples
84- // Get AppKey and AppSID from https://dashboard.groupdocs.cloud
85- String MyAppKey = " " ;
86- String MyAppSid = " " ;
87-
88- Configuration configuration = new Configuration (MyAppSid , MyAppKey );
89-
90- // Create API instance
84+ // Get Client Id and Client Secret from https://dashboard.groupdocs.cloud
85+ String MyClientId = " " ;
86+ String MyClientSecret = " " ;
87+
88+ // Create instance of the API
89+ Configuration configuration = new Configuration (MyClientId , MyClientSecret );
9190ConvertApi apiInstance = new ConvertApi (configuration);
92-
91+
9392// Prepare convert settings
9493ConvertSettings settings = new ConvertSettings ();
9594settings. setFilePath(" WordProcessing/four-pages.docx" );
@@ -104,6 +103,8 @@ watermark.setBackground(true);
104103
105104PdfConvertOptions convertOptions = new PdfConvertOptions ();
106105convertOptions. setWatermarkOptions(watermark);
106+
107+ List<StoredConvertedResult > result = apiInstance. convertDocument(new ConvertDocumentRequest (settings));
107108```
108109
109110## GroupDocs.Conversion Cloud SDKs in Popular Languages
You can’t perform that action at this time.
0 commit comments