Skip to content

Commit 0645c11

Browse files
committed
Updated sources
1 parent 7002012 commit 0645c11

5 files changed

Lines changed: 40 additions & 17 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Add following repository and dependency to your project's POM
3737
<dependency>
3838
<groupId>com.groupdocs</groupId>
3939
<artifactId>groupdocs-viewer-cloud</artifactId>
40-
<version>19.3.2</version>
40+
<version>19.4</version>
4141
<scope>compile</scope>
4242
</dependency>
4343
```
@@ -50,7 +50,7 @@ At first generate the JAR by executing:
5050

5151
Then manually install the following JARs:
5252

53-
* target/groupdocs-viewer-cloud-19.3.2.jar
53+
* target/groupdocs-viewer-cloud-19.4.jar
5454
* target/lib/*.jar
5555

5656
## Getting Started

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>groupdocs-viewer-cloud</artifactId>
66
<packaging>jar</packaging>
77
<name>groupdocs-viewer-cloud</name>
8-
<version>19.3.2</version>
8+
<version>19.4</version>
99
<url>https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-java</url>
1010
<description>Java library for communicating with the GroupDocs.Viewer Cloud API</description>
1111
<scm>

src/main/java/com/groupdocs/cloud/viewer/api/ViewerApi.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ private com.squareup.okhttp.Call createViewValidateBeforeCall(CreateViewRequest
142142
}
143143

144144
/**
145-
* Create new view if it not exists
145+
* Render document pages
146146
*
147147
* @param request The request model
148148
* @return ViewResult
@@ -154,7 +154,7 @@ public ViewResult createView(CreateViewRequest request) throws ApiException {
154154
}
155155

156156
/**
157-
* Create new view if it not exists
157+
* Render document pages
158158
*
159159
* @param request The request model
160160
* @return ApiResponse&lt;ViewResult&gt;
@@ -167,7 +167,7 @@ public ApiResponse<ViewResult> createViewWithHttpInfo(CreateViewRequest request)
167167
}
168168

169169
/**
170-
* Create new view if it not exists (asynchronously)
170+
* Render document pages (asynchronously)
171171
*
172172
* @param request The request model
173173
* @param callback The callback to be executed when the API call finishes
@@ -264,7 +264,7 @@ private com.squareup.okhttp.Call deleteViewValidateBeforeCall(DeleteViewRequest
264264
}
265265

266266
/**
267-
* Delete view
267+
* Delete rendered pages
268268
*
269269
* @param request The request model
270270
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
@@ -274,7 +274,7 @@ public void deleteView(DeleteViewRequest request) throws ApiException {
274274
}
275275

276276
/**
277-
* Delete view
277+
* Delete rendered pages
278278
*
279279
* @param request The request model
280280
* @return ApiResponse&lt;Void&gt;
@@ -286,7 +286,7 @@ public ApiResponse<Void> deleteViewWithHttpInfo(DeleteViewRequest request) throw
286286
}
287287

288288
/**
289-
* Delete view (asynchronously)
289+
* Delete rendered pages (asynchronously)
290290
*
291291
* @param request The request model
292292
* @param callback The callback to be executed when the API call finishes
@@ -382,7 +382,7 @@ private com.squareup.okhttp.Call getInfoValidateBeforeCall(GetInfoRequest reques
382382
}
383383

384384
/**
385-
* Get information about view
385+
* Retrieve information about document pages
386386
*
387387
* @param request The request model
388388
* @return InfoResult
@@ -394,7 +394,7 @@ public InfoResult getInfo(GetInfoRequest request) throws ApiException {
394394
}
395395

396396
/**
397-
* Get information about view
397+
* Retrieve information about document pages
398398
*
399399
* @param request The request model
400400
* @return ApiResponse&lt;InfoResult&gt;
@@ -407,7 +407,7 @@ public ApiResponse<InfoResult> getInfoWithHttpInfo(GetInfoRequest request) throw
407407
}
408408

409409
/**
410-
* Get information about view (asynchronously)
410+
* Retrieve information about document pages (asynchronously)
411411
*
412412
* @param request The request model
413413
* @param callback The callback to be executed when the API call finishes
@@ -498,7 +498,7 @@ private com.squareup.okhttp.Call getSupportedFileFormatsValidateBeforeCall(final
498498
}
499499

500500
/**
501-
* Get supported file formats
501+
* List supported file formats
502502
*
503503
* @return FormatsResult
504504
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
@@ -509,7 +509,7 @@ public FormatsResult getSupportedFileFormats() throws ApiException {
509509
}
510510

511511
/**
512-
* Get supported file formats
512+
* List supported file formats
513513
*
514514
* @return ApiResponse&lt;FormatsResult&gt;
515515
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
@@ -521,7 +521,7 @@ public ApiResponse<FormatsResult> getSupportedFileFormatsWithHttpInfo() throws A
521521
}
522522

523523
/**
524-
* Get supported file formats (asynchronously)
524+
* List supported file formats (asynchronously)
525525
*
526526
* @param callback The callback to be executed when the API call finishes
527527
* @return The request call

src/main/java/com/groupdocs/cloud/viewer/client/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public ApiClient(Configuration configuration) {
9797
this.json = new JSON();
9898

9999
// Set default User-Agent.
100-
setUserAgent("java-sdk/19.3.2");
100+
setUserAgent("java-sdk/19.4");
101101

102102
// Set connection timeout
103103
setConnectTimeout(configuration.getTimeout());

src/main/java/com/groupdocs/cloud/viewer/model/ViewOptions.java

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ public ViewFormatEnum read(final JsonReader jsonReader) throws IOException {
104104
@SerializedName("viewFormat")
105105
private ViewFormatEnum viewFormat = null;
106106

107+
@SerializedName("outputPath")
108+
private String outputPath = null;
109+
107110
@SerializedName("fontsPath")
108111
private String fontsPath = null;
109112

@@ -149,6 +152,24 @@ public void setViewFormat(ViewFormatEnum viewFormat) {
149152
this.viewFormat = viewFormat;
150153
}
151154

155+
public ViewOptions outputPath(String outputPath) {
156+
this.outputPath = outputPath;
157+
return this;
158+
}
159+
160+
/**
161+
* The output path. Default value is &#39;viewer\\{input file path}_{file extension}\\&#39;
162+
* @return outputPath
163+
**/
164+
@ApiModelProperty(value = "The output path. Default value is 'viewer\\{input file path}_{file extension}\\'")
165+
public String getOutputPath() {
166+
return outputPath;
167+
}
168+
169+
public void setOutputPath(String outputPath) {
170+
this.outputPath = outputPath;
171+
}
172+
152173
public ViewOptions fontsPath(String fontsPath) {
153174
this.fontsPath = fontsPath;
154175
return this;
@@ -215,14 +236,15 @@ public boolean equals(java.lang.Object o) {
215236
ViewOptions viewOptions = (ViewOptions) o;
216237
return Objects.equals(this.fileInfo, viewOptions.fileInfo) &&
217238
Objects.equals(this.viewFormat, viewOptions.viewFormat) &&
239+
Objects.equals(this.outputPath, viewOptions.outputPath) &&
218240
Objects.equals(this.fontsPath, viewOptions.fontsPath) &&
219241
Objects.equals(this.watermark, viewOptions.watermark) &&
220242
Objects.equals(this.renderOptions, viewOptions.renderOptions);
221243
}
222244

223245
@Override
224246
public int hashCode() {
225-
return Objects.hash(fileInfo, viewFormat, fontsPath, watermark, renderOptions);
247+
return Objects.hash(fileInfo, viewFormat, outputPath, fontsPath, watermark, renderOptions);
226248
}
227249

228250

@@ -233,6 +255,7 @@ public String toString() {
233255

234256
sb.append(" fileInfo: ").append(toIndentedString(fileInfo)).append("\n");
235257
sb.append(" viewFormat: ").append(toIndentedString(viewFormat)).append("\n");
258+
sb.append(" outputPath: ").append(toIndentedString(outputPath)).append("\n");
236259
sb.append(" fontsPath: ").append(toIndentedString(fontsPath)).append("\n");
237260
sb.append(" watermark: ").append(toIndentedString(watermark)).append("\n");
238261
sb.append(" renderOptions: ").append(toIndentedString(renderOptions)).append("\n");

0 commit comments

Comments
 (0)