Skip to content

Commit 851c4c0

Browse files
committed
Updated sources
1 parent 307fd21 commit 851c4c0

15 files changed

Lines changed: 1041 additions & 18 deletions

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>21.3</version>
40+
<version>21.8</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-21.3.jar
53+
* target/groupdocs-viewer-cloud-21.8.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>21.3</version>
8+
<version>21.8</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/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/21.3");
100+
setUserAgent("java-sdk/21.8");
101101

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

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

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ public class ArchiveOptions {
4545
@SerializedName("folder")
4646
private String folder = null;
4747

48+
@SerializedName("fileName")
49+
private String fileName = null;
50+
51+
@SerializedName("itemsPerPage")
52+
private Integer itemsPerPage = null;
53+
4854
public ArchiveOptions folder(String folder) {
4955
this.folder = folder;
5056
return this;
@@ -63,6 +69,42 @@ public void setFolder(String folder) {
6369
this.folder = folder;
6470
}
6571

72+
public ArchiveOptions fileName(String fileName) {
73+
this.fileName = fileName;
74+
return this;
75+
}
76+
77+
/**
78+
* The filename to display in the header. By default the name of the source file is displayed.
79+
* @return fileName
80+
**/
81+
@ApiModelProperty(value = "The filename to display in the header. By default the name of the source file is displayed.")
82+
public String getFileName() {
83+
return fileName;
84+
}
85+
86+
public void setFileName(String fileName) {
87+
this.fileName = fileName;
88+
}
89+
90+
public ArchiveOptions itemsPerPage(Integer itemsPerPage) {
91+
this.itemsPerPage = itemsPerPage;
92+
return this;
93+
}
94+
95+
/**
96+
* Number of records per page (for rendering to HTML only)
97+
* @return itemsPerPage
98+
**/
99+
@ApiModelProperty(required = true, value = "Number of records per page (for rendering to HTML only) ")
100+
public Integer getItemsPerPage() {
101+
return itemsPerPage;
102+
}
103+
104+
public void setItemsPerPage(Integer itemsPerPage) {
105+
this.itemsPerPage = itemsPerPage;
106+
}
107+
66108

67109
@Override
68110
public boolean equals(java.lang.Object o) {
@@ -73,12 +115,14 @@ public boolean equals(java.lang.Object o) {
73115
return false;
74116
}
75117
ArchiveOptions archiveOptions = (ArchiveOptions) o;
76-
return Objects.equals(this.folder, archiveOptions.folder);
118+
return Objects.equals(this.folder, archiveOptions.folder) &&
119+
Objects.equals(this.fileName, archiveOptions.fileName) &&
120+
Objects.equals(this.itemsPerPage, archiveOptions.itemsPerPage);
77121
}
78122

79123
@Override
80124
public int hashCode() {
81-
return Objects.hash(folder);
125+
return Objects.hash(folder, fileName, itemsPerPage);
82126
}
83127

84128

@@ -88,6 +132,8 @@ public String toString() {
88132
sb.append("class ArchiveOptions {\n");
89133

90134
sb.append(" folder: ").append(toIndentedString(folder)).append("\n");
135+
sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n");
136+
sb.append(" itemsPerPage: ").append(toIndentedString(itemsPerPage)).append("\n");
91137
sb.append("}");
92138
return sb.toString();
93139
}

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

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ public PageSizeEnum read(final JsonReader jsonReader) throws IOException {
110110
@SerializedName("fieldLabels")
111111
private List<FieldLabel> fieldLabels = null;
112112

113+
@SerializedName("dateTimeFormat")
114+
private String dateTimeFormat = null;
115+
116+
@SerializedName("timeZoneOffset")
117+
private String timeZoneOffset = null;
118+
113119
public EmailOptions pageSize(PageSizeEnum pageSize) {
114120
this.pageSize = pageSize;
115121
return this;
@@ -154,6 +160,42 @@ public void setFieldLabels(List<FieldLabel> fieldLabels) {
154160
this.fieldLabels = fieldLabels;
155161
}
156162

163+
public EmailOptions dateTimeFormat(String dateTimeFormat) {
164+
this.dateTimeFormat = dateTimeFormat;
165+
return this;
166+
}
167+
168+
/**
169+
* Time Format (can be include TimeZone) for example: &#39;MM d yyyy HH:mm tt&#39;, if not set - current system format is used
170+
* @return dateTimeFormat
171+
**/
172+
@ApiModelProperty(value = "Time Format (can be include TimeZone) for example: 'MM d yyyy HH:mm tt', if not set - current system format is used")
173+
public String getDateTimeFormat() {
174+
return dateTimeFormat;
175+
}
176+
177+
public void setDateTimeFormat(String dateTimeFormat) {
178+
this.dateTimeFormat = dateTimeFormat;
179+
}
180+
181+
public EmailOptions timeZoneOffset(String timeZoneOffset) {
182+
this.timeZoneOffset = timeZoneOffset;
183+
return this;
184+
}
185+
186+
/**
187+
* Message time zone offset. Format should be compatible with .net TimeSpan
188+
* @return timeZoneOffset
189+
**/
190+
@ApiModelProperty(value = "Message time zone offset. Format should be compatible with .net TimeSpan")
191+
public String getTimeZoneOffset() {
192+
return timeZoneOffset;
193+
}
194+
195+
public void setTimeZoneOffset(String timeZoneOffset) {
196+
this.timeZoneOffset = timeZoneOffset;
197+
}
198+
157199

158200
@Override
159201
public boolean equals(java.lang.Object o) {
@@ -165,12 +207,14 @@ public boolean equals(java.lang.Object o) {
165207
}
166208
EmailOptions emailOptions = (EmailOptions) o;
167209
return Objects.equals(this.pageSize, emailOptions.pageSize) &&
168-
Objects.equals(this.fieldLabels, emailOptions.fieldLabels);
210+
Objects.equals(this.fieldLabels, emailOptions.fieldLabels) &&
211+
Objects.equals(this.dateTimeFormat, emailOptions.dateTimeFormat) &&
212+
Objects.equals(this.timeZoneOffset, emailOptions.timeZoneOffset);
169213
}
170214

171215
@Override
172216
public int hashCode() {
173-
return Objects.hash(pageSize, fieldLabels);
217+
return Objects.hash(pageSize, fieldLabels, dateTimeFormat, timeZoneOffset);
174218
}
175219

176220

@@ -181,6 +225,8 @@ public String toString() {
181225

182226
sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n");
183227
sb.append(" fieldLabels: ").append(toIndentedString(fieldLabels)).append("\n");
228+
sb.append(" dateTimeFormat: ").append(toIndentedString(dateTimeFormat)).append("\n");
229+
sb.append(" timeZoneOffset: ").append(toIndentedString(timeZoneOffset)).append("\n");
184230
sb.append("}");
185231
return sb.toString();
186232
}

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

Lines changed: 142 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,15 @@
3636
import com.groupdocs.cloud.viewer.model.ArchiveOptions;
3737
import com.groupdocs.cloud.viewer.model.CadOptions;
3838
import com.groupdocs.cloud.viewer.model.EmailOptions;
39+
import com.groupdocs.cloud.viewer.model.MailStorageOptions;
3940
import com.groupdocs.cloud.viewer.model.OutlookOptions;
4041
import com.groupdocs.cloud.viewer.model.PageRotation;
4142
import com.groupdocs.cloud.viewer.model.PdfDocumentOptions;
4243
import com.groupdocs.cloud.viewer.model.ProjectManagementOptions;
4344
import com.groupdocs.cloud.viewer.model.RenderOptions;
4445
import com.groupdocs.cloud.viewer.model.SpreadsheetOptions;
46+
import com.groupdocs.cloud.viewer.model.TextOptions;
47+
import com.groupdocs.cloud.viewer.model.VisioRenderingOptions;
4548
import com.groupdocs.cloud.viewer.model.WordProcessingOptions;
4649
import io.swagger.annotations.ApiModel;
4750
import io.swagger.annotations.ApiModelProperty;
@@ -72,6 +75,24 @@ public class HtmlOptions extends RenderOptions {
7275
@SerializedName("fontsToExclude")
7376
private List<String> fontsToExclude = null;
7477

78+
@SerializedName("forPrinting")
79+
private Boolean forPrinting = null;
80+
81+
@SerializedName("imageHeight")
82+
private Integer imageHeight = null;
83+
84+
@SerializedName("imageWidth")
85+
private Integer imageWidth = null;
86+
87+
@SerializedName("imageMaxHeight")
88+
private Integer imageMaxHeight = null;
89+
90+
@SerializedName("imageMaxWidth")
91+
private Integer imageMaxWidth = null;
92+
93+
@SerializedName("renderToSinglePage")
94+
private Boolean renderToSinglePage = null;
95+
7596
public HtmlOptions externalResources(Boolean externalResources) {
7697
this.externalResources = externalResources;
7798
return this;
@@ -188,6 +209,114 @@ public void setFontsToExclude(List<String> fontsToExclude) {
188209
this.fontsToExclude = fontsToExclude;
189210
}
190211

212+
public HtmlOptions forPrinting(Boolean forPrinting) {
213+
this.forPrinting = forPrinting;
214+
return this;
215+
}
216+
217+
/**
218+
* Indicates whether to optimize output HTML for printing.
219+
* @return forPrinting
220+
**/
221+
@ApiModelProperty(required = true, value = "Indicates whether to optimize output HTML for printing.")
222+
public Boolean getForPrinting() {
223+
return forPrinting;
224+
}
225+
226+
public void setForPrinting(Boolean forPrinting) {
227+
this.forPrinting = forPrinting;
228+
}
229+
230+
public HtmlOptions imageHeight(Integer imageHeight) {
231+
this.imageHeight = imageHeight;
232+
return this;
233+
}
234+
235+
/**
236+
* The height of an output image in pixels. (When converting single image to HTML only)
237+
* @return imageHeight
238+
**/
239+
@ApiModelProperty(required = true, value = "The height of an output image in pixels. (When converting single image to HTML only)")
240+
public Integer getImageHeight() {
241+
return imageHeight;
242+
}
243+
244+
public void setImageHeight(Integer imageHeight) {
245+
this.imageHeight = imageHeight;
246+
}
247+
248+
public HtmlOptions imageWidth(Integer imageWidth) {
249+
this.imageWidth = imageWidth;
250+
return this;
251+
}
252+
253+
/**
254+
* The width of the output image in pixels. (When converting single image to HTML only)
255+
* @return imageWidth
256+
**/
257+
@ApiModelProperty(required = true, value = "The width of the output image in pixels. (When converting single image to HTML only)")
258+
public Integer getImageWidth() {
259+
return imageWidth;
260+
}
261+
262+
public void setImageWidth(Integer imageWidth) {
263+
this.imageWidth = imageWidth;
264+
}
265+
266+
public HtmlOptions imageMaxHeight(Integer imageMaxHeight) {
267+
this.imageMaxHeight = imageMaxHeight;
268+
return this;
269+
}
270+
271+
/**
272+
* Max height of an output image in pixels. (When converting single image to HTML only)
273+
* @return imageMaxHeight
274+
**/
275+
@ApiModelProperty(required = true, value = "Max height of an output image in pixels. (When converting single image to HTML only)")
276+
public Integer getImageMaxHeight() {
277+
return imageMaxHeight;
278+
}
279+
280+
public void setImageMaxHeight(Integer imageMaxHeight) {
281+
this.imageMaxHeight = imageMaxHeight;
282+
}
283+
284+
public HtmlOptions imageMaxWidth(Integer imageMaxWidth) {
285+
this.imageMaxWidth = imageMaxWidth;
286+
return this;
287+
}
288+
289+
/**
290+
* Max width of an output image in pixels. (When converting single image to HTML only)
291+
* @return imageMaxWidth
292+
**/
293+
@ApiModelProperty(required = true, value = "Max width of an output image in pixels. (When converting single image to HTML only)")
294+
public Integer getImageMaxWidth() {
295+
return imageMaxWidth;
296+
}
297+
298+
public void setImageMaxWidth(Integer imageMaxWidth) {
299+
this.imageMaxWidth = imageMaxWidth;
300+
}
301+
302+
public HtmlOptions renderToSinglePage(Boolean renderToSinglePage) {
303+
this.renderToSinglePage = renderToSinglePage;
304+
return this;
305+
}
306+
307+
/**
308+
* Enables HTML content will be rendered to single page
309+
* @return renderToSinglePage
310+
**/
311+
@ApiModelProperty(required = true, value = "Enables HTML content will be rendered to single page")
312+
public Boolean getRenderToSinglePage() {
313+
return renderToSinglePage;
314+
}
315+
316+
public void setRenderToSinglePage(Boolean renderToSinglePage) {
317+
this.renderToSinglePage = renderToSinglePage;
318+
}
319+
191320

192321
@Override
193322
public boolean equals(java.lang.Object o) {
@@ -204,12 +333,18 @@ public boolean equals(java.lang.Object o) {
204333
Objects.equals(this.minify, htmlOptions.minify) &&
205334
Objects.equals(this.excludeFonts, htmlOptions.excludeFonts) &&
206335
Objects.equals(this.fontsToExclude, htmlOptions.fontsToExclude) &&
336+
Objects.equals(this.forPrinting, htmlOptions.forPrinting) &&
337+
Objects.equals(this.imageHeight, htmlOptions.imageHeight) &&
338+
Objects.equals(this.imageWidth, htmlOptions.imageWidth) &&
339+
Objects.equals(this.imageMaxHeight, htmlOptions.imageMaxHeight) &&
340+
Objects.equals(this.imageMaxWidth, htmlOptions.imageMaxWidth) &&
341+
Objects.equals(this.renderToSinglePage, htmlOptions.renderToSinglePage) &&
207342
super.equals(o);
208343
}
209344

210345
@Override
211346
public int hashCode() {
212-
return Objects.hash(externalResources, resourcePath, isResponsive, minify, excludeFonts, fontsToExclude, super.hashCode());
347+
return Objects.hash(externalResources, resourcePath, isResponsive, minify, excludeFonts, fontsToExclude, forPrinting, imageHeight, imageWidth, imageMaxHeight, imageMaxWidth, renderToSinglePage, super.hashCode());
213348
}
214349

215350

@@ -224,6 +359,12 @@ public String toString() {
224359
sb.append(" minify: ").append(toIndentedString(minify)).append("\n");
225360
sb.append(" excludeFonts: ").append(toIndentedString(excludeFonts)).append("\n");
226361
sb.append(" fontsToExclude: ").append(toIndentedString(fontsToExclude)).append("\n");
362+
sb.append(" forPrinting: ").append(toIndentedString(forPrinting)).append("\n");
363+
sb.append(" imageHeight: ").append(toIndentedString(imageHeight)).append("\n");
364+
sb.append(" imageWidth: ").append(toIndentedString(imageWidth)).append("\n");
365+
sb.append(" imageMaxHeight: ").append(toIndentedString(imageMaxHeight)).append("\n");
366+
sb.append(" imageMaxWidth: ").append(toIndentedString(imageMaxWidth)).append("\n");
367+
sb.append(" renderToSinglePage: ").append(toIndentedString(renderToSinglePage)).append("\n");
227368
sb.append("}");
228369
return sb.toString();
229370
}

0 commit comments

Comments
 (0)