Skip to content

Commit 260bf24

Browse files
Merge branch 'master' into release
2 parents 6112e59 + 4518060 commit 260bf24

File tree

420 files changed

+4553
-752
lines changed

Some content is hidden

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

420 files changed

+4553
-752
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +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.9
17+
18+
- Added digital signature methds for DOC, DOCX, XPS, or ODT documents.
19+
- Added ReplaceBackslashWithYenSign property for XpsSaveOptions and HtmlSaveOptions.
20+
- Added DigitalSignature property for XpsSaveOptions.
21+
- Added UseSdtTagAsFormFieldName property for PdfSaveOptions.
22+
- Added MergeWholeDocument parameter to the MailMerge operations to update fields in whole document after executing of a mail merge with regions.
23+
- Migrated from deprecated javax.mail to modern jakarta.mail library.
24+
1625
## Enhancements in Version 24.8
1726

1827
- Added the support of OpenType standard. It is usefull for languages required advanced typography.
@@ -360,7 +369,7 @@ Add this dependency to your project's POM:
360369
<dependency>
361370
<groupId>com.aspose</groupId>
362371
<artifactId>aspose-words-cloud</artifactId>
363-
<version>24.8.0</version>
372+
<version>24.9.0</version>
364373
</dependency>
365374
</dependencies>
366375
```
1.69 KB
Binary file not shown.
12.6 KB
Binary file not shown.
12 KB
Binary file not shown.

pom.xml

Lines changed: 4 additions & 4 deletions
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.8.0</version>
7+
<version>24.9.0</version>
88
<url>https://www.aspose.cloud/</url>
99
<description>Aspose Words Java SDK</description>
1010
<scm>
@@ -296,9 +296,9 @@
296296
<version>${gson-fire-version}</version>
297297
</dependency>
298298
<dependency>
299-
<groupId>javax.mail</groupId>
300-
<artifactId>mail</artifactId>
301-
<version>1.4.7</version>
299+
<groupId>com.sun.mail</groupId>
300+
<artifactId>jakarta.mail</artifactId>
301+
<version>2.0.1</version>
302302
</dependency>
303303
<dependency>
304304
<groupId>org.threeten</groupId>

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

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
import javax.crypto.BadPaddingException;
4040
import javax.crypto.Cipher;
4141
import javax.crypto.IllegalBlockSizeException;
42-
import javax.mail.BodyPart;
43-
import javax.mail.MessagingException;
44-
import javax.mail.internet.MimeMultipart;
45-
import javax.mail.util.ByteArrayDataSource;
42+
import jakarta.mail.BodyPart;
43+
import jakarta.mail.MessagingException;
44+
import jakarta.mail.internet.MimeMultipart;
45+
import jakarta.mail.util.ByteArrayDataSource;
4646
import java.io.*;
4747
import java.lang.reflect.Type;
4848
import java.net.URLConnection;
@@ -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.8";
62+
private String clientVersion = "24.9";
6363
private boolean debugging = false;
6464
private Map<String, String> defaultHeaderMap = new HashMap<String, String>();
6565
private String tempFolderPath = null;
@@ -628,8 +628,7 @@ public <T> T deserialize(Response response, Type returnType) throws ApiException
628628

629629
if (returnType.equals(MimeMultipart.class)) {
630630
try {
631-
InputStream in = response.body().byteStream();
632-
ByteArrayDataSource dataSource = new ByteArrayDataSource(in, "multipart/mixed");
631+
ByteArrayDataSource dataSource = new ByteArrayDataSource(response.body().bytes(), "multipart/mixed");
633632
return (T) new MimeMultipart(dataSource);
634633
}
635634
catch (IOException | MessagingException e) {
@@ -1160,8 +1159,7 @@ public Map<String, byte[]> parseFilesCollection(String filename, String dataType
11601159
*/
11611160
public MimeMultipart getMultipartFromResponse(Response response) throws ApiException {
11621161
try {
1163-
InputStream in = response.body().byteStream();
1164-
ByteArrayDataSource dataSource = new ByteArrayDataSource(in, "multipart/mixed");
1162+
ByteArrayDataSource dataSource = new ByteArrayDataSource(response.body().bytes(), "multipart/mixed");
11651163
return new MimeMultipart(dataSource);
11661164
}
11671165
catch (IOException | MessagingException e) {

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ public static class ModelAdapterFactory implements TypeAdapterFactory {
449449
put("CustomXmlPartsCollection, _", com.aspose.words.cloud.model.CustomXmlPartsCollection.class);
450450
put("CustomXmlPartsResponse, _", com.aspose.words.cloud.model.CustomXmlPartsResponse.class);
451451
put("CustomXmlPartUpdate, _", com.aspose.words.cloud.model.CustomXmlPartUpdate.class);
452+
put("DigitalSignatureDetails, _", com.aspose.words.cloud.model.DigitalSignatureDetails.class);
452453
put("DocmSaveOptionsData, _", com.aspose.words.cloud.model.DocmSaveOptionsData.class);
453454
put("DocSaveOptionsData, _", com.aspose.words.cloud.model.DocSaveOptionsData.class);
454455
put("Document, _", com.aspose.words.cloud.model.Document.class);
@@ -615,6 +616,9 @@ public static class ModelAdapterFactory implements TypeAdapterFactory {
615616
put("SectionPageSetupResponse, _", com.aspose.words.cloud.model.SectionPageSetupResponse.class);
616617
put("SectionResponse, _", com.aspose.words.cloud.model.SectionResponse.class);
617618
put("Shading, _", com.aspose.words.cloud.model.Shading.class);
619+
put("Signature, _", com.aspose.words.cloud.model.Signature.class);
620+
put("SignatureCollectionResponse, _", com.aspose.words.cloud.model.SignatureCollectionResponse.class);
621+
put("SignOptions, _", com.aspose.words.cloud.model.SignOptions.class);
618622
put("SplitDocumentResponse, _", com.aspose.words.cloud.model.SplitDocumentResponse.class);
619623
put("SplitDocumentResult, _", com.aspose.words.cloud.model.SplitDocumentResult.class);
620624
put("StatDataResponse, _", com.aspose.words.cloud.model.StatDataResponse.class);

0 commit comments

Comments
 (0)