Skip to content

Commit 302878b

Browse files
authored
Merge pull request #40 from aspose-pdf-cloud/develop
update to 21.12
2 parents 4c713c1 + 5e85963 commit 302878b

File tree

4 files changed

+35
-19
lines changed

4 files changed

+35
-19
lines changed

README.md

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![](https://img.shields.io/badge/api-v3.0-lightgrey) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/aspose-pdf-cloud/aspose-pdf-cloud-java) [![GitHub license](https://img.shields.io/github/license/aspose-pdf-cloud/aspose-pdf-cloud-java)](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-java)
1+
![](https://img.shields.io/badge/api-v3.0-lightgrey) [![GitHub license](https://img.shields.io/github/license/aspose-pdf-cloud/aspose-pdf-cloud-java)](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-java)
22

33
# Java REST API to Process PDF in Cloud
44
[Aspose.PDF Cloud](https://products.aspose.cloud/pdf) is a true REST API that enables you to perform a wide range of document processing operations including creation, manipulation, conversion and rendering of PDF documents in the cloud.
@@ -30,7 +30,7 @@ XLS, XLSX, PPTX, DOC, DOCX, MobiXML, JPEG, EMF, PNG, BMP, GIF, TIFF, Text
3030
## Read PDF Formats
3131
MHT, PCL, PS, XSLFO, MD
3232

33-
## Enhancements in Version 21.11
33+
## Enhancements in Version 21.12
3434
- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .Net.
3535

3636
## Enhancements in Version 20.9
@@ -62,7 +62,7 @@ Add this dependency to your project's POM:
6262
<dependency>
6363
<groupId>com.aspose</groupId>
6464
<artifactId>aspose-cloud-pdf</artifactId>
65-
<version>21.11.0</version>
65+
<version>21.12.0</version>
6666
<scope>compile</scope>
6767
</dependency>
6868
```
@@ -71,7 +71,7 @@ Add this dependency to your project's POM:
7171
Add this dependency to your project's build file:
7272

7373
```groovy
74-
compile "com.aspose:aspose-cloud-pdf:21.11.0"
74+
compile "com.aspose:aspose-cloud-pdf:21.12.0"
7575
```
7676

7777
### Others
@@ -82,28 +82,43 @@ At first generate the JAR by executing:
8282

8383
Then manually install the following JARs:
8484

85-
* target/aspose-cloud-pdf-21.11.0.jar
85+
* target/aspose-cloud-pdf-21.12.0.jar
8686
* target/lib/*.jar
8787

8888
## Getting Started
8989

9090
Please follow the [installation](#installation) instruction and execute the following Java code:
9191

92-
## Delete Field from PDF in Java
93-
9492
```java
95-
// Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).
96-
PdfApi pdfApi = new PdfApi("MY_CLIENT_SECRET", "MY_CLIENT_ID");
9793

98-
String name = "name_example"; // String | The document name.
99-
String fieldName = "fieldName_example"; // String | The field name/
100-
String storage = "storage_example"; // String | The document storage.
101-
String folder = "folder_example"; // String | The document folder.
94+
import com.aspose.asposecloudpdf.*;
95+
import com.aspose.asposecloudpdf.model.*;
96+
import com.aspose.asposecloudpdf.api.PdfApi;
97+
98+
import java.io.File;
99+
import java.util.*;
100+
101+
public class PdfApiExample {
102+
103+
public static void main(String[] args) {
104+
// Get App key and App SID from https://cloud.aspose.com
105+
PdfApi apiInstance = new PdfApi("app_key", "app_sid");
106+
String name = "name_example"; // String | The document name.
107+
String fieldName = "fieldName_example"; // String | The field name/
108+
String storage = "storage_example"; // String | The document storage.
109+
String folder = "folder_example"; // String | The document folder.
110+
try {
111+
SaaSposeResponse result = apiInstance.deleteField(name, fieldName, storage, folder);
112+
System.out.println(result);
113+
} catch (ApiException e) {
114+
System.err.println("Exception when calling PdfApi#deleteField");
115+
e.printStackTrace();
116+
}
117+
}
118+
}
102119

103-
com.squareup.okhttp.Call result = pdfApi.deleteField(name, fieldName, storage, folder);
104120
```
105121

106-
107122
## Unit Tests
108123
Aspose PDF Cloud SDK includes a suite of unit tests within the "test" subdirectory. These Unit Tests also serves as examples of how to use the Aspose PDF Cloud SDK.
109124

@@ -759,3 +774,4 @@ Class | Method | HTTP request | Description
759774
- [PolygonAnnotation](docs/PolygonAnnotation.md)
760775
- [SquareAnnotation](docs/SquareAnnotation.md)
761776

777+

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ apply plugin: 'idea'
2020
apply plugin: 'eclipse'
2121

2222
group = 'com.aspose'
23-
version = '21.11.0'
23+
version = '21.12.0'
2424

2525
buildscript {
2626
repositories {
@@ -84,7 +84,7 @@ dependencies {
8484
publish {
8585
groupId = 'com.aspose'
8686
artifactId = 'aspose-pdf-cloud'
87-
publishVersion = '21.11.0'
87+
publishVersion = '21.12.0'
8888
desc = 'Aspose.PDF Cloud is a REST API for creating and editing PDF files. Most popular features proposed by Aspose.PDF Cloud: PDF to Word, Convert PDF to Image, Merge PDF, Split PDF, Add Images to PDF, Rotate PDF. It can also be used to convert PDF files to different formats like DOC, HTML, XPS, TIFF and many more. Aspose.PDF Cloud gives you control: create PDFs from scratch or from HTML, XML, template, database, XPS or an image. Render PDFs to image formats such as JPEG, PNG, GIF, BMP, TIFF and many others. Aspose.PDF Cloud helps you manipulate elements of a PDF file like text, annotations, watermarks, signatures, bookmarks, stamps and so on. Its REST API also allows you to manage PDF pages by using features like merging, splitting, and inserting. Add images to a PDF file or convert PDF pages to images.'
8989
licences = ['MIT']
9090
website = 'https://products.aspose.cloud/pdf/cloud'

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<artifactId>aspose-pdf-cloud</artifactId>
77
<packaging>jar</packaging>
88
<name>aspose-pdf-cloud</name>
9-
<version>21.11.0</version>
9+
<version>21.12.0</version>
1010
<url>https://www.aspose.cloud/</url>
1111
<description>Aspose.PDF Cloud is a REST API for creating and editing PDF files.
1212
Most popular features proposed by Aspose.PDF Cloud: PDF to Word, Convert PDF to Image, Merge PDF, Split PDF, Add Images to PDF, Rotate PDF.

src/main/java/com/aspose/asposecloudpdf/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public ApiClient() {
9292

9393
// Add custom headers
9494
addDefaultHeader("x-aspose-client", "java sdk");
95-
addDefaultHeader("x-aspose-client-version", "21.11.0");
95+
addDefaultHeader("x-aspose-client-version", "21.12.0");
9696

9797
// PDFCLOUD-418 Set default Connect Timeout
9898
setConnectTimeout(5 * 60 * 1000);

0 commit comments

Comments
 (0)