Skip to content

Commit 6112e59

Browse files
Merge branch 'master' into release
2 parents 6c11439 + 6bbdd99 commit 6112e59

File tree

370 files changed

+7975
-333
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

370 files changed

+7975
-333
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,15 @@ This repository contains Aspose.Words Cloud SDK for Java source code. This SDK a
1313
* Watermarks and protection
1414
* Full read & write access to Document Object Model, including sections, paragraphs, text, images, tables, headers/footers and many others
1515

16+
## Enhancements in Version 24.8
17+
18+
- Added the support of OpenType standard. It is usefull for languages required advanced typography.
19+
20+
1621
## Enhancements in Version 24.7
1722

1823
- Added support for azw3 (Amazon Kindle Format) documents.
24+
- Added 'MaxImageResolution' property for SvgSaveOptionsData class.
1925

2026

2127
## Enhancements in Version 24.6
@@ -354,7 +360,7 @@ Add this dependency to your project's POM:
354360
<dependency>
355361
<groupId>com.aspose</groupId>
356362
<artifactId>aspose-words-cloud</artifactId>
357-
<version>24.7.0</version>
363+
<version>24.8.0</version>
358364
</dependency>
359365
</dependencies>
360366
```

examples/AcceptAllRevisions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818

1919
// Calls AcceptAllRevisions method for document in cloud.
2020
String myVar3 = fileName;
21-
AcceptAllRevisionsRequest request = new AcceptAllRevisionsRequest(myVar3, null, null, null, null, null, null);
21+
AcceptAllRevisionsRequest request = new AcceptAllRevisionsRequest(myVar3, null, null, null, null, null, null, null);
2222
wordsApi.acceptAllRevisions(request);

examples/AcceptAllRevisionsOnline.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
// Calls AcceptAllRevisionsOnline method for document in cloud.
66
byte[] requestDocument = Files.readAllBytes(Paths.get(fileName).toAbsolutePath());
7-
AcceptAllRevisionsOnlineRequest request = new AcceptAllRevisionsOnlineRequest(requestDocument, null, null, null, null);
7+
AcceptAllRevisionsOnlineRequest request = new AcceptAllRevisionsOnlineRequest(requestDocument, null, null, null, null, null);
88
AcceptAllRevisionsOnlineResponse acceptAllRevisionsOnlineResult = wordsApi.acceptAllRevisionsOnline(request);
99
Files.write(Paths.get("test_result.docx"), acceptAllRevisionsOnlineResult.getDocument().values().iterator().next());

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<artifactId>aspose-words-cloud</artifactId>
55
<packaging>jar</packaging>
66
<name>AsposeWordsCloud</name>
7-
<version>24.7.0</version>
7+
<version>24.8.0</version>
88
<url>https://www.aspose.cloud/</url>
99
<description>Aspose Words Java SDK</description>
1010
<scm>

src/main/java/com/aspose/words/cloud/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public class ApiClient {
5959
private String apiVersion = "v4.0";
6060
private String baseUrl = "https://api.aspose.cloud";
6161
private String basePath = baseUrl + "/" + apiVersion;
62-
private String clientVersion = "24.7";
62+
private String clientVersion = "24.8";
6363
private boolean debugging = false;
6464
private Map<String, String> defaultHeaderMap = new HashMap<String, String>();
6565
private String tempFolderPath = null;

src/main/java/com/aspose/words/cloud/model/SvgSaveOptionsData.java

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ public TextOutputModeEnum read(final JsonReader jsonReader) throws IOException {
101101
@SerializedName("FitToViewPort")
102102
protected Boolean fitToViewPort;
103103

104+
@SerializedName("MaxImageResolution")
105+
protected Integer maxImageResolution;
106+
104107
@SerializedName("ResourcesFolder")
105108
protected String resourcesFolder;
106109

@@ -150,6 +153,27 @@ public void setFitToViewPort(Boolean fitToViewPort) {
150153
}
151154

152155

156+
/**
157+
* Gets or sets a value in pixels per inch that limits resolution of exported raster images.
158+
* If the value of this property is non-zero, it limits resolution of exported raster images.
159+
* That is, higher-resolution images are resampled down to the limit and lower-resolution images are exported as is.
160+
* @return maxImageResolution
161+
**/
162+
@ApiModelProperty(value = "Gets or sets a value in pixels per inch that limits resolution of exported raster images. If the value of this property is non-zero, it limits resolution of exported raster images. That is, higher-resolution images are resampled down to the limit and lower-resolution images are exported as is.")
163+
public Integer getMaxImageResolution() {
164+
return maxImageResolution;
165+
}
166+
167+
public SvgSaveOptionsData maxImageResolution(Integer maxImageResolution) {
168+
this.maxImageResolution = maxImageResolution;
169+
return this;
170+
}
171+
172+
public void setMaxImageResolution(Integer maxImageResolution) {
173+
this.maxImageResolution = maxImageResolution;
174+
}
175+
176+
153177
/**
154178
* Gets or sets the physical folder where resources (images) are saved when exporting.
155179
* @return resourcesFolder
@@ -230,6 +254,7 @@ public SvgSaveOptionsData() {
230254
super();
231255
this.exportEmbeddedImages = null;
232256
this.fitToViewPort = null;
257+
this.maxImageResolution = null;
233258
this.resourcesFolder = null;
234259
this.resourcesFolderAlias = null;
235260
this.showPageBorder = null;
@@ -269,6 +294,7 @@ public boolean equals(java.lang.Object o) {
269294
return
270295
Objects.equals(this.exportEmbeddedImages, svgSaveOptionsData.exportEmbeddedImages) &&
271296
Objects.equals(this.fitToViewPort, svgSaveOptionsData.fitToViewPort) &&
297+
Objects.equals(this.maxImageResolution, svgSaveOptionsData.maxImageResolution) &&
272298
Objects.equals(this.resourcesFolder, svgSaveOptionsData.resourcesFolder) &&
273299
Objects.equals(this.resourcesFolderAlias, svgSaveOptionsData.resourcesFolderAlias) &&
274300
Objects.equals(this.showPageBorder, svgSaveOptionsData.showPageBorder) &&
@@ -278,7 +304,7 @@ public boolean equals(java.lang.Object o) {
278304

279305
@Override
280306
public int hashCode() {
281-
return Objects.hash(exportEmbeddedImages, fitToViewPort, resourcesFolder, resourcesFolderAlias, showPageBorder, textOutputMode, super.hashCode());
307+
return Objects.hash(exportEmbeddedImages, fitToViewPort, maxImageResolution, resourcesFolder, resourcesFolderAlias, showPageBorder, textOutputMode, super.hashCode());
282308
}
283309

284310
@Override
@@ -306,6 +332,7 @@ public String toString() {
306332
sb.append(" pageIndex: ").append(toIndentedString(getPageIndex())).append("\n");
307333
sb.append(" exportEmbeddedImages: ").append(toIndentedString(getExportEmbeddedImages())).append("\n");
308334
sb.append(" fitToViewPort: ").append(toIndentedString(getFitToViewPort())).append("\n");
335+
sb.append(" maxImageResolution: ").append(toIndentedString(getMaxImageResolution())).append("\n");
309336
sb.append(" resourcesFolder: ").append(toIndentedString(getResourcesFolder())).append("\n");
310337
sb.append(" resourcesFolderAlias: ").append(toIndentedString(getResourcesFolderAlias())).append("\n");
311338
sb.append(" showPageBorder: ").append(toIndentedString(getShowPageBorder())).append("\n");

src/main/java/com/aspose/words/cloud/model/requests/AcceptAllRevisionsOnlineRequest.java

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ public class AcceptAllRevisionsOnlineRequest implements RequestIfc {
6161
*/
6262
private String encryptedPassword;
6363

64+
/*
65+
* The value indicates whether OpenType support is on.
66+
*/
67+
private Boolean openTypeSupport;
68+
6469
/*
6570
* Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
6671
*/
@@ -73,13 +78,15 @@ public class AcceptAllRevisionsOnlineRequest implements RequestIfc {
7378
* @param String loadEncoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
7479
* @param String password Password of protected Word document. Use the parameter to pass a password via SDK. SDK encrypts it automatically. We don't recommend to use the parameter to pass a plain password for direct call of API.
7580
* @param String encryptedPassword Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
81+
* @param Boolean openTypeSupport The value indicates whether OpenType support is on.
7682
* @param String destFileName Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
7783
*/
78-
public AcceptAllRevisionsOnlineRequest(byte[] document, String loadEncoding, String password, String encryptedPassword, String destFileName) {
84+
public AcceptAllRevisionsOnlineRequest(byte[] document, String loadEncoding, String password, String encryptedPassword, Boolean openTypeSupport, String destFileName) {
7985
this.document = document;
8086
this.loadEncoding = loadEncoding;
8187
this.password = password;
8288
this.encryptedPassword = encryptedPassword;
89+
this.openTypeSupport = openTypeSupport;
8390
this.destFileName = destFileName;
8491
}
8592

@@ -139,6 +146,20 @@ public void setEncryptedPassword(String value) {
139146
this.encryptedPassword = value;
140147
}
141148

149+
/*
150+
* Gets The value indicates whether OpenType support is on.
151+
*/
152+
public Boolean getOpenTypeSupport() {
153+
return this.openTypeSupport;
154+
}
155+
156+
/*
157+
* Sets The value indicates whether OpenType support is on.
158+
*/
159+
public void setOpenTypeSupport(Boolean value) {
160+
this.openTypeSupport = value;
161+
}
162+
142163
/*
143164
* Gets Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
144165
*/
@@ -177,6 +198,7 @@ public Request buildHttpRequest(ApiClient apiClient, final ProgressResponseBody.
177198
apiClient.addParameterToQuery(localVarQueryParams, "loadEncoding", getLoadEncoding());
178199
apiClient.addParameterToQuery(localVarQueryParams, "password", getPassword());
179200
apiClient.addParameterToQuery(localVarQueryParams, "encryptedPassword", getEncryptedPassword());
201+
apiClient.addParameterToQuery(localVarQueryParams, "openTypeSupport", getOpenTypeSupport());
180202
apiClient.addParameterToQuery(localVarQueryParams, "destFileName", getDestFileName());
181203

182204
Map<String, String> localVarHeaderParams = new HashMap<String, String>();

src/main/java/com/aspose/words/cloud/model/requests/AcceptAllRevisionsRequest.java

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ public class AcceptAllRevisionsRequest implements RequestIfc {
7171
*/
7272
private String encryptedPassword;
7373

74+
/*
75+
* The value indicates whether OpenType support is on.
76+
*/
77+
private Boolean openTypeSupport;
78+
7479
/*
7580
* Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
7681
*/
@@ -85,15 +90,17 @@ public class AcceptAllRevisionsRequest implements RequestIfc {
8590
* @param String loadEncoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
8691
* @param String password Password of protected Word document. Use the parameter to pass a password via SDK. SDK encrypts it automatically. We don't recommend to use the parameter to pass a plain password for direct call of API.
8792
* @param String encryptedPassword Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
93+
* @param Boolean openTypeSupport The value indicates whether OpenType support is on.
8894
* @param String destFileName Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
8995
*/
90-
public AcceptAllRevisionsRequest(String name, String folder, String storage, String loadEncoding, String password, String encryptedPassword, String destFileName) {
96+
public AcceptAllRevisionsRequest(String name, String folder, String storage, String loadEncoding, String password, String encryptedPassword, Boolean openTypeSupport, String destFileName) {
9197
this.name = name;
9298
this.folder = folder;
9399
this.storage = storage;
94100
this.loadEncoding = loadEncoding;
95101
this.password = password;
96102
this.encryptedPassword = encryptedPassword;
103+
this.openTypeSupport = openTypeSupport;
97104
this.destFileName = destFileName;
98105
}
99106

@@ -181,6 +188,20 @@ public void setEncryptedPassword(String value) {
181188
this.encryptedPassword = value;
182189
}
183190

191+
/*
192+
* Gets The value indicates whether OpenType support is on.
193+
*/
194+
public Boolean getOpenTypeSupport() {
195+
return this.openTypeSupport;
196+
}
197+
198+
/*
199+
* Sets The value indicates whether OpenType support is on.
200+
*/
201+
public void setOpenTypeSupport(Boolean value) {
202+
this.openTypeSupport = value;
203+
}
204+
184205
/*
185206
* Gets Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
186207
*/
@@ -222,6 +243,7 @@ public Request buildHttpRequest(ApiClient apiClient, final ProgressResponseBody.
222243
apiClient.addParameterToQuery(localVarQueryParams, "loadEncoding", getLoadEncoding());
223244
apiClient.addParameterToQuery(localVarQueryParams, "password", getPassword());
224245
apiClient.addParameterToQuery(localVarQueryParams, "encryptedPassword", getEncryptedPassword());
246+
apiClient.addParameterToQuery(localVarQueryParams, "openTypeSupport", getOpenTypeSupport());
225247
apiClient.addParameterToQuery(localVarQueryParams, "destFileName", getDestFileName());
226248

227249
Map<String, String> localVarHeaderParams = new HashMap<String, String>();

src/main/java/com/aspose/words/cloud/model/requests/AppendDocumentOnlineRequest.java

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ public class AppendDocumentOnlineRequest implements RequestIfc {
6666
*/
6767
private String encryptedPassword;
6868

69+
/*
70+
* The value indicates whether OpenType support is on.
71+
*/
72+
private Boolean openTypeSupport;
73+
6974
/*
7075
* Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
7176
*/
@@ -89,16 +94,18 @@ public class AppendDocumentOnlineRequest implements RequestIfc {
8994
* @param String loadEncoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
9095
* @param String password Password of protected Word document. Use the parameter to pass a password via SDK. SDK encrypts it automatically. We don't recommend to use the parameter to pass a plain password for direct call of API.
9196
* @param String encryptedPassword Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
97+
* @param Boolean openTypeSupport The value indicates whether OpenType support is on.
9298
* @param String destFileName Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
9399
* @param String revisionAuthor Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
94100
* @param String revisionDateTime The date and time to use for revisions.
95101
*/
96-
public AppendDocumentOnlineRequest(byte[] document, BaseEntryList documentList, String loadEncoding, String password, String encryptedPassword, String destFileName, String revisionAuthor, String revisionDateTime) {
102+
public AppendDocumentOnlineRequest(byte[] document, BaseEntryList documentList, String loadEncoding, String password, String encryptedPassword, Boolean openTypeSupport, String destFileName, String revisionAuthor, String revisionDateTime) {
97103
this.document = document;
98104
this.documentList = documentList;
99105
this.loadEncoding = loadEncoding;
100106
this.password = password;
101107
this.encryptedPassword = encryptedPassword;
108+
this.openTypeSupport = openTypeSupport;
102109
this.destFileName = destFileName;
103110
this.revisionAuthor = revisionAuthor;
104111
this.revisionDateTime = revisionDateTime;
@@ -174,6 +181,20 @@ public void setEncryptedPassword(String value) {
174181
this.encryptedPassword = value;
175182
}
176183

184+
/*
185+
* Gets The value indicates whether OpenType support is on.
186+
*/
187+
public Boolean getOpenTypeSupport() {
188+
return this.openTypeSupport;
189+
}
190+
191+
/*
192+
* Sets The value indicates whether OpenType support is on.
193+
*/
194+
public void setOpenTypeSupport(Boolean value) {
195+
this.openTypeSupport = value;
196+
}
197+
177198
/*
178199
* Gets Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
179200
*/
@@ -252,6 +273,8 @@ public Request buildHttpRequest(ApiClient apiClient, final ProgressResponseBody.
252273

253274

254275

276+
277+
255278
// create path and map variables
256279
String localVarPath = "/words/online/put/appendDocument";
257280
localVarPath = localVarPath.replaceAll("//", "/");
@@ -261,6 +284,7 @@ public Request buildHttpRequest(ApiClient apiClient, final ProgressResponseBody.
261284
apiClient.addParameterToQuery(localVarQueryParams, "loadEncoding", getLoadEncoding());
262285
apiClient.addParameterToQuery(localVarQueryParams, "password", getPassword());
263286
apiClient.addParameterToQuery(localVarQueryParams, "encryptedPassword", getEncryptedPassword());
287+
apiClient.addParameterToQuery(localVarQueryParams, "openTypeSupport", getOpenTypeSupport());
264288
apiClient.addParameterToQuery(localVarQueryParams, "destFileName", getDestFileName());
265289
apiClient.addParameterToQuery(localVarQueryParams, "revisionAuthor", getRevisionAuthor());
266290
apiClient.addParameterToQuery(localVarQueryParams, "revisionDateTime", getRevisionDateTime());

0 commit comments

Comments
 (0)