Skip to content

Commit 55f6091

Browse files
committed
Aspose.Cells Cloud SDK 20.4
1 parent 0e949af commit 55f6091

File tree

258 files changed

+2324
-1676
lines changed

Some content is hidden

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

258 files changed

+2324
-1676
lines changed

.classpath

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,12 @@
1212
<attribute name="maven.pomderived" value="true"/>
1313
</attributes>
1414
</classpathentry>
15+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
1516
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
16-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
17-
<attributes>
18-
<attribute name="maven.pomderived" value="true"/>
19-
</attributes>
20-
</classpathentry>
2117
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
2218
<attributes>
2319
<attribute name="maven.pomderived" value="true"/>
2420
</attributes>
2521
</classpathentry>
26-
<classpathentry kind="output" path="target/classes"/>
22+
<classpathentry kind="output" path="bin"/>
2723
</classpath>

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ hs_err_pid*
1919
target
2020
.gradle
2121
build
22+
.settings

.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<projectDescription>
3-
<name>aspose-cells-cloud-nanjing</name>
3+
<name>aspose-cells-cloud</name>
44
<comment>Project aspose-cells-cloud created by Buildship.</comment>
55
<projects>
66
</projects>
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
package com.aspose.cloud.cells.examples.storage;
2+
3+
import java.io.File;
4+
5+
import org.junit.Test;
6+
7+
import com.aspose.cloud.cells.api.CellsApi;
8+
import com.aspose.cloud.cells.api.CellsApiUtil;
9+
import com.aspose.cloud.cells.client.ApiException;
10+
import com.aspose.cloud.cells.examples.Utils;
11+
12+
13+
public class StorageApiExample {
14+
private CellsApi api;
15+
16+
private String BOOK1 = "Book1.xlsx";
17+
private String MYDOC = "myDocument.xlsx";
18+
private String PivTestFile = "TestCase.xlsx";
19+
private String TEMPFOLDER = "Temp";
20+
private String SHEET1 = "Sheet1";
21+
private String SHEET2 = "Sheet2";
22+
private String SHEET3 = "Sheet3";
23+
private String SHEET4 = "Sheet4";
24+
private String SHEET5 = "Sheet5";
25+
private String SHEET6 = "Sheet6";
26+
private String SHEET7 = "Sheet7";
27+
private String SHEET8 = "Sheet8";
28+
private String CellName = "A1";
29+
private String RANGE = "A1:C10";
30+
private String CELLAREA = "A1:C10";
31+
32+
public StorageApiExample(){
33+
try {
34+
api = new CellsApi(CellsApiUtil.GetClientId(),CellsApiUtil.GetClientSecret());
35+
} catch (ApiException e) {
36+
// TODO Auto-generated catch block
37+
e.printStackTrace();
38+
}
39+
}
40+
41+
@Test
42+
public void cellsUploadFileTestCases() throws ApiException {
43+
File file = new File(Utils.GetSourcePath(BOOK1));
44+
try {
45+
api.uploadFile( BOOK1, file, null);
46+
} catch (ApiException e) {
47+
// TODO Auto-generated catch block
48+
e.printStackTrace();
49+
}
50+
}
51+
}

README.md

Lines changed: 66 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,52 @@
1-
# Aspose.Cells Cloud SDK for Java
1+
# Java REST API for Spreadsheet Processing in Cloud
22

3-
- API version: 3.0
4-
- SDK version: 20.2
3+
This Cloud SDK enhances your Java cloud-based apps to [process & manipulate Microsoft Excel spreadsheets](https://products.aspose.cloud/cells/java) in the cloud, without MS Office.
54

6-
This repository contains Aspose.Cells Cloud SDK for Java source code. This SDK allows you to work with Aspose.Cells Cloud REST APIs in your Java applications quickly and easily, with zero initial cost.
5+
## Spreadsheet Processing Features
76

7+
- Add, update or delete charts, worksheet pictures, shapes, hyperlinks & validations.
8+
- Add or remove cells area for conditional formatting, or OleObjects from Excel worksheets.
9+
- Insert or delete, horizontal or vertical page breaks
10+
- Add ListObject at a specific place within an Excel file & convert them to a range of cells.
11+
- Delete specific or all ListObjects in a worksheet or summarize its data with pivot table.
12+
- Apply custom criteria to list filters of various types.
13+
- Get, update, show or hide chart legend & titles.
14+
- Manipulate page setup, header & footer.
15+
- Create, update, fetch or delete document properties.
16+
- Fetch the required shape from worksheet.
17+
- Load & Process Excel Spreadsheets via Cloud SDK.
18+
- Cloud SDK to Read & Process Excel Worksheets.
19+
- Leverage the Power of Pivot Tables & Ranges.
820

21+
## Enhancements in Version 20.4
922

10-
# Key Features
23+
- Support to export area or page of sheet to JPEG.
24+
- Support to add background for workbook.
25+
- Enhancement for splitting workbook.
26+
- Enhancement for create workbook.
1127

12-
- Conversion between various document-related formats (20+ formats supported), including PDF<->Excel conversion
28+
## Read & Write Spreadsheet Formats
1329

14-
- Splitting Excel documents
30+
**Microsoft Excel:** XLS, XLSX, XLSB, XLSM, XLT, XLTX, XLTM
31+
**OpenOffice:** ODS
32+
**SpreadsheetML:** XML
33+
**Text:** CSV, TSV, TXT (TabDelimited)
34+
**Web:** HTML, MHTML
35+
**PDF**
1536

16-
- Accessing Excel document metadata and statistics
37+
## Save Spreadsheet As
1738

18-
- Find and replace
39+
DIF, HTML, MHTML,PNG,JPG, TIFF, XPS, SVG, MD (Markdown), ODS ,xlsx,xls,xlsb, PDF,XML,TXT,CSV
1940

20-
- Watermarks and protection
41+
## Read Spreadsheet Formats
2142

22-
- Full read & write access to Cells Object Model, including workbook, worksheet, cell, shapes, tables, list object ,ole Object,headers/footers and many others
43+
SXC, FODS
2344

24-
45+
## Getting Started with Aspose.Cells Cloud SDK for Java
2546

26-
See [API Reference](https://apireference.aspose.cloud/cells/) for full API specification.
27-
28-
29-
30-
# Storage API support
31-
32-
#### Since version 19.9 SDK includes support of storage operations for better user experience and unification, so now there's no need to use 2 different SDKs!
33-
34-
It gives you an ability to:
35-
36-
- Upload, download, copy, move and delete files, including versions handling (if you are using Cloud storage that supports this feature - true by default)
37-
- Create, copy, move and delete folders
38-
- Copy and move files and folders accross separate storages in scope of a single operation
39-
- Check if certain file, folder or storage exists
40-
41-
# Licensing
42-
43-
All Aspose.Cells Cloud SDKs are licensed under [MIT License](https://github.com/aspose-cells-cloud/aspose-cells-cloud-java/blob/master/LICENSE)).
44-
45-
46-
47-
# How to use the SDK?
48-
49-
The complete source code is available in this repository folder. You can either directly use it in your project via source code or get [NuGet distribution](https://www.nuget.org/packages/Aspose.Cells-Cloud/) (recommended). For more details, please visit our [documentation website](https://docs.aspose.cloud/display/cellscloud/Available+SDKs#AvailableSDKs-.NET).
50-
51-
52-
53-
### Prerequisites
54-
55-
56-
57-
To use Aspose Cells Cloud SDK for Java you need to register an account with [Aspose Cloud](https://www.aspose.cloud/) and lookup/create App Key and SID at [Maven](https://mvnrepository.com/artifact/com.aspose/aspose-cloud-cells). There is free quota available. For more details, see [Aspose Cloud Pricing](https://purchase.aspose.cloud/pricing).
58-
59-
60-
61-
## Installation & Usage
62-
63-
47+
You do not need to install anything to get started with Aspose.Cells Cloud SDK for Java. Just create an account at [Aspose for Cloud](https://dashboard.aspose.cloud/#/apps) and get your application information.
6448

6549
Add this dependency to your project's POM:
66-
67-
68-
6950
```
7051
<repositories>
7152
<repository>
@@ -79,57 +60,46 @@ Add this dependency to your project's POM:
7960
<dependency>
8061
<groupId>com.aspose</groupId>
8162
<artifactId>aspose-cells-cloud</artifactId>
82-
<version>19.9.0</version>
63+
<version>20.4.0</version>
8364
</dependency>
8465
</dependencies>
8566
```
67+
If you already have Aspose.Cells Cloud SDK for Java and want to upgrade it, please execute `Update-Package Aspose.Cells-Cloud` to get the latest version.
8668

87-
88-
89-
## Getting Started
90-
91-
92-
93-
```
94-
import com.aspose.cells.*;
95-
import com.aspose.cells.client.*;
96-
import com.aspose.cells.model.*;
97-
98-
import java.io.File;
99-
import java.util.*;
100-
101-
public class WordsApiExample {
102-
103-
public static void main(String[] args) {
104-
105-
CellsApi cellsApi = new CellsApi();
106-
String name = BOOK1;
107-
String sheetName = SHEET1;
108-
Integer columnIndex = 1;
109-
Integer columns = 1;
110-
Boolean updateReference = true;
111-
String folder = TEMPFOLDER;
112-
ColumnsResponse response = cellsApi.cellsDeleteWorksheetColumns(name, sheetName, columnIndex, columns, updateReference, folder,null);
113-
}
114-
}
115-
```
116-
117-
# Tests
11869

119-
[Tests](https://github.com/aspose-cells-cloud/aspose-cells-cloud-java/tree/master/src/test/java/com/aspose/cloud/cells/api) contain various examples of using the SDK.
70+
Please check the [GitHub Repository](https://github.com/aspose-cells-cloud/aspose-cells-cloud-java) for other common usage scenarios.
12071

72+
## Using Java to Add a New Worksheet to an Excel File
12173

122-
# Contact Us
74+
The following code snippet demonstrates how to add a new worksheet to a Microsoft Excel document using Java code:
12375

124-
Your feedback is very important to us. Please feel free to contact via
76+
```Java
77+
CellsApi cellsApi = new CellsApi(CellsApiUtil.GetClientId(),CellsApiUtil.GetClientSecret())
78+
String name = BOOK1;
79+
String sheetName = SHEET1;
80+
Integer position = 1;
81+
String sheettype ="VB";
82+
String folder = TEMPFOLDER;
83+
cellsApi.uploadFile(folder +"\\" + filename, new File(sourceFolder + filename), null);
84+
WorksheetsResponse response = cellsApi.cellsWorksheetsPutAddNewWorksheet(name, sheetName, position, sheettype, folder,null);
85+
```
12586

126-
- [**Free Support Forum**](https://forum.aspose.cloud/c/cells)
127-
- [**Paid Support Helpdesk**](https://helpdesk.aspose.cloud/)
87+
## Using Java to Convert an Excel File to another File Format
88+
89+
The following code example elaborates how you can use Java code to convert an Excel document to another file format in the cloud:
90+
91+
```Java
92+
String name = BOOK1;
93+
SaveOptions saveOptions = null;
94+
String newfilename = "newbook.xlsx";
95+
Boolean isAutoFitRows = true;
96+
Boolean isAutoFitColumns = false;
97+
String folder = TEMPFOLDER;
98+
// Upload source file to aspose cloud storage
99+
cellsApi.uploadFile(folder +"\\" + filename, new File(sourceFolder + filename), null);
100+
// Invoke Aspose.Cells Cloud SDK API to convert excel workbook to different format
101+
SaveResponse response = cellsApi.cellsSaveAsPostDocumentSaveAs(name, saveOptions, newfilename, isAutoFitRows, isAutoFitColumns, folder,null);
102+
```
128103

129-
# Resources
104+
[Product Page](https://products.aspose.cloud/cells/java) | [Documentation](https://docs.aspose.cloud/display/cellscloud/Home) | [Live Demo](https://products.aspose.app/cells/family) | [API Reference](https://apireference.aspose.cloud/cells/) | [Code Samples](https://github.com/aspose-cells-cloud/aspose-cells-cloud-java) | [Blog](https://blog.aspose.cloud/category/cells/) | [Free Support](https://forum.aspose.cloud/c/cells) | [Free Trial](https://dashboard.aspose.cloud/#/apps)
130105

131-
- [**Web API reference**](https://apireference.aspose.cloud/cells/)
132-
- [**Website**](https://www.aspose.cloud)
133-
- [**Product Home**](https://products.aspose.cloud/cells)
134-
- [**Documentation**](https://docs.aspose.cloud/display/cellscloud/Home)
135-
- [**Blog**](https://blog.aspose.cloud/category/cells/)

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'idea'
22
apply plugin: 'eclipse'
33

44
group = 'com.aspose'
5-
version = '20.2'
5+
version = '20.4'
66

77
buildscript {
88
repositories {

0 commit comments

Comments
 (0)