Skip to content

Commit 79c30e7

Browse files
committed
Release Aspose.Cells Cloud SDK 24.9.0
1 parent b7a82c9 commit 79c30e7

31 files changed

+804
-78
lines changed

Examples/Example_DeleteFile.java renamed to Examples/Example_PostAddTextContent.java

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
import java.io.File;
1111
import java.util.HashMap;
1212

13-
public class ExampleDeleteFile {
13+
public class ExamplePostAddTextContent {
1414
private CellsApi api;
15-
public ExampleDeleteFile(){
15+
public ExamplePostAddTextContent(){
1616
try {
1717
api = new CellsApi(
1818
System.getenv("CellsCloudClientId"),
@@ -29,8 +29,8 @@ public void Run(){
2929
try{
3030
String remoteFolder = "TestData/In";
3131

32-
String localName = "Book1.xlsx";
33-
String remoteName = "Book1.xlsx";
32+
String localName = "BookText.xlsx";
33+
String remoteName = "BookText.xlsx";
3434

3535
UploadFileRequest uploadFileRequest = new UploadFileRequest();
3636
uploadFileRequest.setPath( remoteFolder + "/" + remoteName );
@@ -40,14 +40,31 @@ public void Run(){
4040
uploadFileRequest.setUploadFiles(files);
4141
cellsApi.uploadFile(uploadFileRequest);
4242

43-
DeleteFileRequest request = new DeleteFileRequest();
44-
request.setPath(remoteFolder + "/" + remoteName);
43+
PostAddTextContentRequest request = new PostAddTextContentRequest();
44+
AddTextOptions addTextOptions = new AddTextOptions();
45+
DataSource dataSource = new DataSource();
46+
dataSource.setDataSourceType("CloudFileSystem");
4547

46-
request.setStorageName("");
4748

48-
request.setVersionId("");
49+
dataSource.setDataPath("BookText.xlsx");
4950

50-
this.api.deleteFile(request);
51+
addTextOptions.setDataSource(dataSource);
52+
53+
54+
addTextOptions.setText("Aspose.Cells Cloud is an excellent product.");
55+
56+
57+
addTextOptions.setWorksheet("202401");
58+
59+
60+
addTextOptions.setSelectPoistion("AtTheBeginning");
61+
62+
63+
addTextOptions.setSkipEmptyCells(true);
64+
65+
request.setAddTextOptions(addTextOptions);
66+
67+
this.api.postAddTextContent(request);
5168

5269
} catch (ApiException e) {
5370
// TODO Auto-generated catch block

Examples/Example_PostTrimContent.java

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
package com.aspose.cloud.cells.api;
2+
3+
import com.aspose.cloud.cells.client.*;
4+
import com.aspose.cloud.cells.model.*;
5+
import com.aspose.cloud.cells.request.*;
6+
7+
import org.junit.Test;
8+
import java.util.ArrayList;
9+
import java.util.List;
10+
import java.io.File;
11+
import java.util.HashMap;
12+
13+
public class ExamplePostTrimContent {
14+
private CellsApi api;
15+
public ExamplePostTrimContent(){
16+
try {
17+
api = new CellsApi(
18+
System.getenv("CellsCloudClientId"),
19+
System.getenv("CellsCloudClientSecret"),
20+
"v3.0",
21+
System.getenv("CellsCloudApiBaseUrl")
22+
);
23+
} catch (ApiException e) {
24+
e.printStackTrace();
25+
}
26+
}
27+
28+
public void Run(){
29+
try{
30+
String remoteFolder = "TestData/In";
31+
32+
String localName = "BookText.xlsx";
33+
String remoteName = "BookText.xlsx";
34+
35+
UploadFileRequest uploadFileRequest = new UploadFileRequest();
36+
uploadFileRequest.setPath( remoteFolder + "/" + remoteName );
37+
uploadFileRequest.setStorageName( "");
38+
HashMap<String,File> files = new HashMap<String,File>();
39+
files.put( localName , new File(localName ));
40+
uploadFileRequest.setUploadFiles(files);
41+
cellsApi.uploadFile(uploadFileRequest);
42+
43+
PostTrimContentRequest request = new PostTrimContentRequest();
44+
TrimContentOptions trimContentOptions = new TrimContentOptions();
45+
DataSource dataSource = new DataSource();
46+
dataSource.setDataSourceType("CloudFileSystem");
47+
48+
49+
dataSource.setDataPath("BookText.xlsx");
50+
51+
trimContentOptions.setDataSource(dataSource);
52+
53+
54+
trimContentOptions.setTrimLeading(true);
55+
56+
57+
trimContentOptions.setTrimTrailing(true);
58+
59+
60+
trimContentOptions.setTrimSpaceBetweenWordTo1(true);
61+
62+
63+
trimContentOptions.setRemoveAllLineBreaks(true);
64+
65+
66+
ScopeOptions scopeOptions = new ScopeOptions();
67+
scopeOptions.setScope("EntireWorkbook");
68+
69+
trimContentOptions.setScopeOptions(scopeOptions);
70+
71+
request.setTrimContentOptions(trimContentOptions);
72+
73+
this.api.postTrimContent(request);
74+
75+
} catch (ApiException e) {
76+
// TODO Auto-generated catch block
77+
e.printStackTrace();
78+
}
79+
}
80+
}

Examples/Example_MoveFile.java renamed to Examples/Example_PostUpdateWordCase.java

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
import java.io.File;
1111
import java.util.HashMap;
1212

13-
public class ExampleMoveFile {
13+
public class ExamplePostUpdateWordCase {
1414
private CellsApi api;
15-
public ExampleMoveFile(){
15+
public ExamplePostUpdateWordCase(){
1616
try {
1717
api = new CellsApi(
1818
System.getenv("CellsCloudClientId"),
@@ -29,8 +29,8 @@ public void Run(){
2929
try{
3030
String remoteFolder = "TestData/In";
3131

32-
String localName = "Book1.xlsx";
33-
String remoteName = "Book1.xlsx";
32+
String localName = "BookText.xlsx";
33+
String remoteName = "BookText.xlsx";
3434

3535
UploadFileRequest uploadFileRequest = new UploadFileRequest();
3636
uploadFileRequest.setPath( remoteFolder + "/" + remoteName );
@@ -40,18 +40,28 @@ public void Run(){
4040
uploadFileRequest.setUploadFiles(files);
4141
cellsApi.uploadFile(uploadFileRequest);
4242

43-
MoveFileRequest request = new MoveFileRequest();
44-
request.setSrcPath(remoteFolder + "/" + remoteName);
43+
PostUpdateWordCaseRequest request = new PostUpdateWordCaseRequest();
44+
WordCaseOptions wordCaseOptions = new WordCaseOptions();
45+
DataSource dataSource = new DataSource();
46+
dataSource.setDataSourceType("CloudFileSystem");
4547

46-
request.setDestPath("OutResult/" + remoteName);
4748

48-
request.setSrcStorageName("");
49+
dataSource.setDataPath("BookText.xlsx");
4950

50-
request.setDestStorageName("");
51+
wordCaseOptions.setDataSource(dataSource);
5152

52-
request.setVersionId("");
5353

54-
this.api.moveFile(request);
54+
wordCaseOptions.setWordCaseType("None");
55+
56+
57+
ScopeOptions scopeOptions = new ScopeOptions();
58+
scopeOptions.setScope("EntireWorkbook");
59+
60+
wordCaseOptions.setScopeOptions(scopeOptions);
61+
62+
request.setWordCaseOptions(wordCaseOptions);
63+
64+
this.api.postUpdateWordCase(request);
5565

5666
} catch (ApiException e) {
5767
// TODO Auto-generated catch block

Examples/Example_PostWorkbookDataDeduplication.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ public void Run(){
4444
request.setName(remoteName);
4545

4646
DeduplicationRegion deduplicationRegion = new DeduplicationRegion();
47+
48+
ArrayList<Range> deduplicationRegionRanges = new ArrayList<Range>();
49+
deduplicationRegion.setRanges(deduplicationRegionRanges);
50+
4751
request.setDeduplicationRegion(deduplicationRegion);
4852

4953
request.setFolder(remoteFolder);

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-java)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-java/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-java/24.8)
1+
![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-java)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-java/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-java/24.9)
22

33
# Java package for Aspose.Cells Cloud
44

@@ -17,11 +17,12 @@ Enhance your Java applications with the [Aspose.Cells Cloud](https://products.as
1717
- Import/Export: Facilitates importing data from various sources into spreadsheets and exporting spreadsheet data to other formats.
1818
- Security Management: Offers a range of security features like data encryption, access control, and permission management to safeguard the security and integrity of spreadsheet data.
1919

20-
## Feature & Enhancements in Version 24.8
20+
## Feature & Enhancements in Version 24.9
2121

2222
Full list of issues covering all changes in this release:
2323

24-
- Add the text trim feature on Cells Cloud Services.
24+
- Add word case function for TextProcessingController.
25+
- Support to export Worksheet to HTML with cell address or id.
2526

2627
## Support file format
2728

@@ -110,6 +111,10 @@ File response = cellsApi.putConvertWorkbook(request);
110111

111112
# Release history version
112113

114+
## Enhancements in Version 24.8
115+
116+
- Add the text trim feature on Cells Cloud Services.
117+
113118
## Enhancements in Version 24.7
114119

115120
- Add a new feature about adding text content.

TestData/BookText.xlsx

12.7 KB
Binary file not shown.

docs/api/post-update-word-case.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# **postUpdateWordCase API**
2+
3+
4+
5+
```bash
6+
7+
POST http://api.aspose.cloud/v3.0//cells/updatewordcase
8+
9+
```
10+
11+
## The request parameters of **postUpdateWordCase** API are:
12+
13+
| Parameter Name | Type | Path/Query String/HTTPBody | Description |
14+
| :- | :- | :- |:- |
15+
|wordCaseOptions|Class|Body||
16+
17+
18+
The [OpenAPI Specification](https://reference.aspose.cloud/cells/#/TextProcessingController/PostUpdateWordCase) defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.

docs/api/put-convert-workbook.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ PUT http://api.aspose.cloud/v3.0//cells/convert
2222
|region|String|Query|The regional settings for workbook.|
2323
|pageWideFitOnPerSheet|Boolean|Query|The page wide fit on worksheet.|
2424
|pageTallFitOnPerSheet|Boolean|Query|The page tall fit on worksheet.|
25+
|sheetName|String|Query||
26+
|pageIndex|Integer|Query||
2527

2628

2729
The [OpenAPI Specification](https://reference.aspose.cloud/cells/#/ConversionController/PutConvertWorkbook) defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.

docs/api/put-workbook-background.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ PUT http://api.aspose.cloud/v3.0//cells/{name}/background
1414
| :- | :- | :- |:- |
1515
|name|String|Path|The file name.|
1616
|picPath|String|Query|The picture full path.|
17+
|imageAdaptOption|String|Query||
1718
|folder|String|Query|The folder where the file is situated.|
1819
|storageName|String|Query|The storage name where the file is situated.|
1920
|File|File|FormData|File to upload|

docs/api/put-worksheet-background.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ PUT http://api.aspose.cloud/v3.0//cells/{name}/worksheets/{sheetName}/background
1515
|name|String|Path|The file name.|
1616
|sheetName|String|Path|The worksheet name.|
1717
|picPath|String|Query|picture full filename.|
18+
|imageAdaptOption|String|Query||
1819
|folder|String|Query|The folder where the file is situated.|
1920
|storageName|String|Query|The storage name where the file is situated.|
2021
|File|File|FormData|File to upload|

docs/model/html-save-options.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@ Represents options of saving .html file.
3838
|ExportActiveWorksheetOnly|Boolean|true|false | |Indicates if exporting the whole workbook to html file.|
3939
|ExportChartImageFormat|String|true|false | |Get or set the format of chart image before exporting|
4040
|ExportImagesAsBase64|Boolean|true|false | ||
41-
|HiddenColDisplayType|String|true|false | |Hidden column(the width of this column is 0) in excel,before save this into html format, if HtmlHiddenColDisplayType is "Remove",the hidden column would ont been output, if the value is "Hidden", the column would been output,but was hidden,the default value is "Hidden"|
42-
|HiddenRowDisplayType|String|true|false | |Hidden row(the height of this row is 0) in excel,before save this into html format, if HtmlHiddenRowDisplayType is "Remove",the hidden row would ont been output, if the value is "Hidden", the row would been output,but was hidden,the default value is "Hidden"|
41+
|HiddenColDisplayType|String|true|false | |Hidden column(the width of this column is 0) in excel,before save this into html format, if HtmlHiddenColDisplayType is "Remove",the hidden column would ont been output, if the value is "Hidden", the column would been output,but was hidden,the default value is "Hidden"|
42+
|HiddenRowDisplayType|String|true|false | |Hidden row(the height of this row is 0) in excel,before save this into html format, if HtmlHiddenRowDisplayType is "Remove",the hidden row would ont been output, if the value is "Hidden", the row would been output,but was hidden,the default value is "Hidden"|
4343
|HtmlCrossStringType|String|true|false | |Indicates if a cross-cell string will be displayed in the same way as MS Excel when saving an Excel file in html format. By default the value is Default, so, for cross-cell strings, there is little difference between the html files created by Aspose.Cells and MS Excel. But the performance for creating large html files,setting the value to Cross would be several times faster than setting it to Default or Fit2Cell.|
4444
|IsExpImageToTempDir|Boolean|true|false | |Indicates if export image files to temp directory. Only for saving to html stream.|
4545
|PageTitle|String|true|false | |The title of the html page. Only for saving to html stream.|
4646
|ParseHtmlTagInCell|Boolean|true|false | |Parse html tag in cell,like ,as cell value,or as html tag,default is true|
47+
|CellNameAttribute|String|true|false | ||
4748
|SaveFormat|String|true|false | ||
4849
|CachedFileFolder|String|true|false | ||
4950
|ClearData|Boolean|true|false | ||

docs/model/image-adapt-options.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# **imageAdaptOptions**
2+
3+
4+
5+
## **Properties**
6+
7+
| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description |
8+
| :- | :- | :- |:- | :- | :- |
9+

docs/model/protect-workbook-request.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Indicates protect workbook request
99
|AwaysOpenReadOnly|Boolean|true|false | |Indicates aways open read-only.|
1010
|EncryptWithPassword|String|true|false | |Indicates encrypt with password.|
1111
|ProtectCurrentSheet|Class|true|false | |Represents the various types of protection options available for a worksheet. |
12+
|ProtectAllSheets|Class|true|false | |Represents the various types of protection options available for all worksheets. |
1213
|ProtectWorkbookStructure|String|true|false | |Indicates protect workbook structure. All, Contents, Objects, Scenarios, Structure, Windows, and None.|
1314
|DigitalSignature|Class|true|false | |Indicates signature in file.|
1415
|MarkAsFinal|Boolean|true|false | |Indicates mark as final.|

docs/model/text-water-marker-request.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ Indicates text water marker request.
1111
|FontSize|Integer|true|false | |Indicates font size.|
1212
|Height|Integer|true|false | |Indicates image height.|
1313
|Width|Integer|true|false | |Indicates image width.|
14+
|ImageAdaptOption|String|true|false | ||
1415

docs/model/word-case-options.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# **wordCaseOptions**
2+
3+
4+
5+
## **Properties**
6+
7+
| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description |
8+
| :- | :- | :- |:- | :- | :- |
9+
|DataSource|Class|true|false | ||
10+
|FileInfo|Class|true|false | ||
11+
|WordCaseType|String|true|false | ||
12+
|ScopeOptions|Class|true|false | ||
13+

docs/model/word-case-type.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# **wordCaseType**
2+
3+
4+
5+
## **Properties**
6+
7+
| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description |
8+
| :- | :- | :- |:- | :- | :- |
9+

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>aspose-cells-cloud</artifactId>
66
<packaging>jar</packaging>
77
<name>aspose-cells-cloud</name>
8-
<version>24.8</version>
8+
<version>24.9</version>
99
<url>https://github.com/aspose-cells-cloud/aspose-cells-cloud-java</url>
1010
<scm>
1111
<connection>scm:git:git@github.com:aspose-cells-cloud/aspose-cells-cloud-java</connection>

0 commit comments

Comments
 (0)