Skip to content

Commit 8d7b598

Browse files
committed
Aspose.Cells Cloud SDK 25.2.
1 parent 111ce86 commit 8d7b598

File tree

53 files changed

+12427
-11074
lines changed

Some content is hidden

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

53 files changed

+12427
-11074
lines changed

HistoryVersion.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## Feature & Enhancements in Version 25.1
2+
3+
- Add the new API for splitting text in the cell.
4+
- Optimize pivot table filter-related APIs.
15

26
## Feature & Enhancements in Version 24.12
37

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,17 @@ Enhance your Go applications with the [Aspose.Cells Cloud](https://products.aspo
1919
- Import/Export: Facilitates importing data from various sources into spreadsheets and exporting spreadsheet data to other formats.
2020
- 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.
2121

22-
## Feature & Enhancements in Version v25.1.0
22+
## Feature & Enhancements in Version v25.2.0
2323

2424
Full list of issues covering all changes in this release:
2525

26-
- Add the new API for splitting text in the cell.
27-
- Optimize pivot table filter-related APIs.
26+
- Support copying a range from one workbook to another workbook.
27+
- Add query parameters for image and print options to enhance the Get Worksheet API.
28+
- Added an API to count the number of Excel characters for cells cloud.
29+
- Added an API to count the number of Excel words for cells cloud.
30+
- Added an API to count the number of occurrences of a specified word in Excel for cells cloud
31+
- Add a new feature to support converting range to images.
32+
- Add a new feature to support converting worksheets to images.
2833

2934
## Support file format
3035

api_cells.go

Lines changed: 144 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import (
3333
)
3434

3535
func Version() {
36-
fmt.Println("---Version: 25.1---")
36+
fmt.Println("---Version: 25.2---")
3737
}
3838

3939
func NewCellsApiService(appSid string, appKey string, opts ...string) *CellsApiService {
@@ -3204,6 +3204,34 @@ func (a *CellsApiService) PostConvertWorkbookToCSV(data *PostConvertWorkbookToCS
32043204
}
32053205

32063206

3207+
func (a *CellsApiService) PostConvertWorksheetToImage(data *PostConvertWorksheetToImageRequest) ( FileInfo, *http.Response, error) {
3208+
var (
3209+
localVarReturnValue FileInfo
3210+
3211+
)
3212+
3213+
r, err := data.CreateRequestData(a.client);
3214+
if err != nil {
3215+
return localVarReturnValue, nil, err
3216+
}
3217+
3218+
localVarHttpResponse, err := a.client.callAPI(r)
3219+
if err != nil || localVarHttpResponse == nil {
3220+
return localVarReturnValue, localVarHttpResponse, err
3221+
}
3222+
defer localVarHttpResponse.Body.Close()
3223+
if localVarHttpResponse.StatusCode >= 300 {
3224+
bodyBytes, _ := ioutil.ReadAll(localVarHttpResponse.Body)
3225+
return localVarReturnValue, localVarHttpResponse, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
3226+
}
3227+
if err = json.NewDecoder(localVarHttpResponse.Body).Decode(&localVarReturnValue); err != nil {
3228+
return localVarReturnValue, localVarHttpResponse, err
3229+
}
3230+
3231+
return localVarReturnValue, localVarHttpResponse, err
3232+
}
3233+
3234+
32073235
func (a *CellsApiService) PostExport(data *PostExportRequest) ( FilesResult, *http.Response, error) {
32083236
var (
32093237
localVarReturnValue FilesResult
@@ -6710,6 +6738,34 @@ func (a *CellsApiService) PostWorksheetCellsRangeRowHeight(data *PostWorksheetCe
67106738
}
67116739

67126740

6741+
func (a *CellsApiService) PostWorksheetCellsRangeToImage(data *PostWorksheetCellsRangeToImageRequest) ( CellsCloudResponse, *http.Response, error) {
6742+
var (
6743+
localVarReturnValue CellsCloudResponse
6744+
6745+
)
6746+
6747+
r, err := data.CreateRequestData(a.client);
6748+
if err != nil {
6749+
return localVarReturnValue, nil, err
6750+
}
6751+
6752+
localVarHttpResponse, err := a.client.callAPI(r)
6753+
if err != nil || localVarHttpResponse == nil {
6754+
return localVarReturnValue, localVarHttpResponse, err
6755+
}
6756+
defer localVarHttpResponse.Body.Close()
6757+
if localVarHttpResponse.StatusCode >= 300 {
6758+
bodyBytes, _ := ioutil.ReadAll(localVarHttpResponse.Body)
6759+
return localVarReturnValue, localVarHttpResponse, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
6760+
}
6761+
if err = json.NewDecoder(localVarHttpResponse.Body).Decode(&localVarReturnValue); err != nil {
6762+
return localVarReturnValue, localVarHttpResponse, err
6763+
}
6764+
6765+
return localVarReturnValue, localVarHttpResponse, err
6766+
}
6767+
6768+
67136769
func (a *CellsApiService) PutWorksheetCellsRange(data *PutWorksheetCellsRangeRequest) ( CellsCloudResponse, *http.Response, error) {
67146770
var (
67156771
localVarReturnValue CellsCloudResponse
@@ -7158,6 +7214,93 @@ func (a *CellsApiService) PostWorksheetSparklineGroup(data *PostWorksheetSparkli
71587214
}
71597215

71607216

7217+
func (a *CellsApiService) PostCharacterCount(data *PostCharacterCountRequest) ( []byte, *http.Response, error) {
7218+
var (
7219+
localVarReturnValue []byte
7220+
7221+
)
7222+
7223+
r, err := data.CreateRequestData(a.client);
7224+
if err != nil {
7225+
return localVarReturnValue, nil, err
7226+
}
7227+
7228+
localVarHttpResponse, err := a.client.callAPI(r)
7229+
if err != nil || localVarHttpResponse == nil {
7230+
return localVarReturnValue, localVarHttpResponse, err
7231+
}
7232+
defer localVarHttpResponse.Body.Close()
7233+
if localVarHttpResponse.StatusCode >= 300 {
7234+
bodyBytes, _ := ioutil.ReadAll(localVarHttpResponse.Body)
7235+
return localVarReturnValue, localVarHttpResponse, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
7236+
}
7237+
7238+
if localVarReturnValue, err = ioutil.ReadAll(localVarHttpResponse.Body); err != nil {
7239+
return localVarReturnValue, localVarHttpResponse, err
7240+
}
7241+
7242+
return localVarReturnValue, localVarHttpResponse, err
7243+
}
7244+
7245+
7246+
func (a *CellsApiService) PostWordsCount(data *PostWordsCountRequest) ( []byte, *http.Response, error) {
7247+
var (
7248+
localVarReturnValue []byte
7249+
7250+
)
7251+
7252+
r, err := data.CreateRequestData(a.client);
7253+
if err != nil {
7254+
return localVarReturnValue, nil, err
7255+
}
7256+
7257+
localVarHttpResponse, err := a.client.callAPI(r)
7258+
if err != nil || localVarHttpResponse == nil {
7259+
return localVarReturnValue, localVarHttpResponse, err
7260+
}
7261+
defer localVarHttpResponse.Body.Close()
7262+
if localVarHttpResponse.StatusCode >= 300 {
7263+
bodyBytes, _ := ioutil.ReadAll(localVarHttpResponse.Body)
7264+
return localVarReturnValue, localVarHttpResponse, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
7265+
}
7266+
7267+
if localVarReturnValue, err = ioutil.ReadAll(localVarHttpResponse.Body); err != nil {
7268+
return localVarReturnValue, localVarHttpResponse, err
7269+
}
7270+
7271+
return localVarReturnValue, localVarHttpResponse, err
7272+
}
7273+
7274+
7275+
func (a *CellsApiService) PostSpecifyWordsCount(data *PostSpecifyWordsCountRequest) ( []byte, *http.Response, error) {
7276+
var (
7277+
localVarReturnValue []byte
7278+
7279+
)
7280+
7281+
r, err := data.CreateRequestData(a.client);
7282+
if err != nil {
7283+
return localVarReturnValue, nil, err
7284+
}
7285+
7286+
localVarHttpResponse, err := a.client.callAPI(r)
7287+
if err != nil || localVarHttpResponse == nil {
7288+
return localVarReturnValue, localVarHttpResponse, err
7289+
}
7290+
defer localVarHttpResponse.Body.Close()
7291+
if localVarHttpResponse.StatusCode >= 300 {
7292+
bodyBytes, _ := ioutil.ReadAll(localVarHttpResponse.Body)
7293+
return localVarReturnValue, localVarHttpResponse, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
7294+
}
7295+
7296+
if localVarReturnValue, err = ioutil.ReadAll(localVarHttpResponse.Body); err != nil {
7297+
return localVarReturnValue, localVarHttpResponse, err
7298+
}
7299+
7300+
return localVarReturnValue, localVarHttpResponse, err
7301+
}
7302+
7303+
71617304
func (a *CellsApiService) PostRunTask(data *PostRunTaskRequest) ( []byte, *http.Response, error) {
71627305
var (
71637306
localVarReturnValue []byte

model_character_count_options.go

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/** --------------------------------------------------------------------------------------------------------------------
2+
* <copyright company="Aspose" file="CharacterCountOptions.go">
3+
* Copyright (c) 2025 Aspose.Cells Cloud
4+
* </copyright>
5+
* <summary>
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
* </summary>
24+
-------------------------------------------------------------------------------------------------------------------- **/
25+
26+
package asposecellscloud
27+
28+
type CharacterCountOptions struct {
29+
30+
DataSource *DataSource `json:"DataSource,omitempty" xml:"DataSource"`
31+
FileInfo *FileInfo `json:"FileInfo,omitempty" xml:"FileInfo"`
32+
}

model_combination_source_data.go

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/** --------------------------------------------------------------------------------------------------------------------
2+
* <copyright company="Aspose" file="CombinationSourceData.go">
3+
* Copyright (c) 2025 Aspose.Cells Cloud
4+
* </copyright>
5+
* <summary>
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
* </summary>
24+
-------------------------------------------------------------------------------------------------------------------- **/
25+
26+
package asposecellscloud
27+
28+
type CombinationSourceData struct {
29+
30+
Tag string `json:"Tag,omitempty" xml:"Tag"`
31+
DataSource *DataSource `json:"DataSource,omitempty" xml:"DataSource"`
32+
FileInfo *FileInfo `json:"FileInfo,omitempty" xml:"FileInfo"`
33+
Worksheet string `json:"Worksheet,omitempty" xml:"Worksheet"`
34+
TableName string `json:"TableName,omitempty" xml:"TableName"`
35+
CellArea string `json:"CellArea,omitempty" xml:"CellArea"`
36+
HasHeader bool `json:"HasHeader,omitempty" xml:"HasHeader"`
37+
}

model_convert_worksheet_options.go

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/** --------------------------------------------------------------------------------------------------------------------
2+
* <copyright company="Aspose" file="ConvertWorksheetOptions.go">
3+
* Copyright (c) 2025 Aspose.Cells Cloud
4+
* </copyright>
5+
* <summary>
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
* </summary>
24+
-------------------------------------------------------------------------------------------------------------------- **/
25+
26+
package asposecellscloud
27+
28+
type ConvertWorksheetOptions struct {
29+
30+
Name string `json:"Name,omitempty" xml:"Name"`
31+
32+
DataSource *DataSource `json:"DataSource,omitempty" xml:"DataSource"`
33+
FileInfo *FileInfo `json:"FileInfo,omitempty" xml:"FileInfo"`
34+
WorksheetName string `json:"WorksheetName,omitempty" xml:"WorksheetName"`
35+
PageSetup *PageSetup `json:"PageSetup,omitempty" xml:"PageSetup"`
36+
ImageOrPrintOptions *ImageOrPrintOptions `json:"ImageOrPrintOptions,omitempty" xml:"ImageOrPrintOptions"`
37+
ConvertFormat string `json:"ConvertFormat,omitempty" xml:"ConvertFormat"`
38+
CheckExcelRestriction bool `json:"CheckExcelRestriction,omitempty" xml:"CheckExcelRestriction"`
39+
Region string `json:"Region,omitempty" xml:"Region"`
40+
}

model_copy_options.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ type CopyOptions struct {
3333
ExtendToAdjacentRange bool `json:"ExtendToAdjacentRange,omitempty" xml:"ExtendToAdjacentRange"`
3434
ReferToDestinationSheet bool `json:"ReferToDestinationSheet,omitempty" xml:"ReferToDestinationSheet"`
3535
ReferToSheetWithSameName bool `json:"ReferToSheetWithSameName,omitempty" xml:"ReferToSheetWithSameName"`
36+
CopyTheme bool `json:"CopyTheme,omitempty" xml:"CopyTheme"`
3637
}

model_data_output_location.go

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/** --------------------------------------------------------------------------------------------------------------------
2+
* <copyright company="Aspose" file="DataOutputLocation.go">
3+
* Copyright (c) 2025 Aspose.Cells Cloud
4+
* </copyright>
5+
* <summary>
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
* </summary>
24+
-------------------------------------------------------------------------------------------------------------------- **/
25+
26+
package asposecellscloud
27+
28+
type DataOutputLocation struct {
29+
30+
DataSource *DataSource `json:"DataSource,omitempty" xml:"DataSource"`
31+
FileInfo *FileInfo `json:"FileInfo,omitempty" xml:"FileInfo"`
32+
Worksheet string `json:"Worksheet,omitempty" xml:"Worksheet"`
33+
BeginRowIndex int64 `json:"BeginRowIndex,omitempty" xml:"BeginRowIndex"`
34+
BeginColumnIndex int64 `json:"BeginColumnIndex,omitempty" xml:"BeginColumnIndex"`
35+
}

model_merge_table_options.go

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/** --------------------------------------------------------------------------------------------------------------------
2+
* <copyright company="Aspose" file="MergeTableOptions.go">
3+
* Copyright (c) 2025 Aspose.Cells Cloud
4+
* </copyright>
5+
* <summary>
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
* </summary>
24+
-------------------------------------------------------------------------------------------------------------------- **/
25+
26+
package asposecellscloud
27+
28+
type MergeTableOptions struct {
29+
30+
MainTable *CombinationSourceData `json:"MainTable,omitempty" xml:"MainTable"`
31+
SecondaryTable *CombinationSourceData `json:"SecondaryTable,omitempty" xml:"SecondaryTable"`
32+
DataMergeType string `json:"DataMergeType,omitempty" xml:"DataMergeType"`
33+
OverwriteMainTable bool `json:"OverwriteMainTable,omitempty" xml:"OverwriteMainTable"`
34+
SyncDataToTargetWorkbook bool `json:"SyncDataToTargetWorkbook,omitempty" xml:"SyncDataToTargetWorkbook"`
35+
MergedDataToPosition *DataOutputLocation `json:"MergedDataToPosition,omitempty" xml:"MergedDataToPosition"`
36+
}

0 commit comments

Comments
 (0)