Skip to content

Commit 4adbd8b

Browse files
Updated README
1 parent 7970d5b commit 4adbd8b

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff 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);
9190
ConvertApi apiInstance = new ConvertApi(configuration);
92-
91+
9392
// Prepare convert settings
9493
ConvertSettings settings = new ConvertSettings();
9594
settings.setFilePath("WordProcessing/four-pages.docx");
@@ -104,6 +103,8 @@ watermark.setBackground(true);
104103

105104
PdfConvertOptions convertOptions = new PdfConvertOptions();
106105
convertOptions.setWatermarkOptions(watermark);
106+
107+
List<StoredConvertedResult> result = apiInstance.convertDocument(new ConvertDocumentRequest(settings));
107108
```
108109

109110
## GroupDocs.Conversion Cloud SDKs in Popular Languages

0 commit comments

Comments
 (0)