Skip to content

Commit 6348248

Browse files
committed
update Version1.2.4
1 parent 3f1ef5d commit 6348248

File tree

3 files changed

+38
-29
lines changed

3 files changed

+38
-29
lines changed

README.md

Lines changed: 35 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,48 @@
1-
## compdfkit-pdf-api-java
1+
## ComPDFKit API in Java
2+
3+
[ComPDFKit](https://api.compdf.com/api/docs/introduction) API provides a variety of Java API tools that allow you to create an efficient document processing workflow in a single API call. Try our various APIs for free — no credit card required.
4+
25

3-
This is the compdfkit-pdf-api Java SDK for the [ComPDFKit](https://api.compdf.com/api/docs/introduction) API.
46

57
## Requirements
68

7-
JAVA JDK 1.8 and later.
9+
Programming Environment: Java JDK 1.8 and higher.
10+
11+
Dependencies: Maven.
12+
813

9-
Maven.
1014

1115
## Installation
1216

13-
Add the following dependency to your pom.xml:
17+
Add the following dependency to your ***"pom.xml"***:
1418

1519
```
1620
<dependency>
1721
<groupId>com.compdf</groupId>
18-
<artifactId>compdfkit-pdf-api-java</artifactId>
19-
<version>0.0.5</version>
22+
<artifactId>compdfkit-api-java</artifactId>
23+
<version>1.2.4</version>
2024
</dependency>
2125
```
2226

27+
28+
2329
## Create API Client
2430

25-
You can use your **publicKey** and **secretKey** to complete the authentication
31+
You can use your **publicKey** and **secretKey** to complete the authentication. You need to [sign in](https://api.compdf.com/login) your ComPDFKit API account to get your **publicKey** and **secretKey** at the [dashboard](https://api-dashboard.compdf.com/api/keys). If you are new to ComPDFKit, click here to [sign up](https://api.compdf.com/signup) for a free trial.
2632

27-
Project public Key : You can find the public key in [Management Panel](https://api-dashboard.compdf.com/api/keys).
33+
- Project public Key : You can find the public key in [Management Panel](https://api-dashboard.compdf.com/api/keys).
2834

29-
Project secret Key : You can find the secret Key in [Management Panel](https://api-dashboard.compdf.com/api/keys).
35+
- Project secret Key : You can find the secret Key in [Management Panel](https://api-dashboard.compdf.com/api/keys).
3036

3137
```java
3238
CPDFClient client = new CPDFClient(<publicKey>, <secretKey>);
3339
```
3440

41+
42+
3543
## Create Task
3644

37-
A task ID is automatically generated for you based on the type of PDF tool you choose. You can provide the callback notification URL. After the task processing is completed, we will notify you of the task result through the callback interface. You can perform other operations according to the task result, such as downloading the result file.
45+
A task ID is automatically generated for you based on the type of PDF tool you choose. You can provide the callback notification URL. After the task processing is completed, we will notify you of the task result through the callback interface. You can perform other operations according to the request result, such as checking the status of the task, uploading files, starting the task, or downloading the result file.
3846

3947
```java
4048
// Create a client
@@ -46,20 +54,14 @@ CPDFCreateTaskResult result = client.createTask(CPDFConversionEnum.PDF_TO_WORD.g
4654

4755
// Get a task id
4856
String taskId = result.getTaskId();
57+
```
4958

50-
// Upload files
51-
client.uploadFile(<convertFile>, taskId);
5259

53-
// execute Task
54-
client.executeTask(taskId);
55-
```
5660

5761
## Upload Files
5862

5963
Upload the original file and bind the file to the task ID. The field parameter is used to pass the JSON string to set the processing parameters for the file. Each file will generate automatically a unique filekey. Please note that a maximum of five files can be uploaded for a task ID and no files can be uploaded for that task after it has started.
6064

61-
62-
6365
```java
6466
// Create a client
6567
CPDFClient client = new CPDFClient(<publicKey>, <secretKey>);
@@ -73,16 +75,13 @@ String taskId = result.getTaskId();
7375

7476
// Upload files
7577
client.uploadFile(<convertFile>, taskId);
76-
77-
// execute Task
78-
client.executeTask(taskId);
7978
```
8079

8180

8281

8382
## Execute the task
8483

85-
After the file upload is completed, call this interface with the task ID to process file.
84+
After the file upload is completed, call this interface with the task ID to process the files.
8685

8786
```java
8887
// Create a client
@@ -102,9 +101,11 @@ client.uploadFile(<convertFile>, taskId);
102101
client.executeTask(taskId);
103102
```
104103

105-
## Get TaskInfo
106104

107-
Request task status and file-related metadata based on the task ID.
105+
106+
## Get Task Info
107+
108+
Request task status and file-related meta data based on the task ID.
108109

109110
```java
110111
// Create a client
@@ -120,13 +121,21 @@ String taskId = result.getTaskId();
120121
// Upload files
121122
client.uploadFile(<convertFile>, taskId);
122123

123-
// execute Task
124+
// Execute Task
124125
client.executeTask(taskId);
125126

126-
// query TaskInfo
127+
// Query TaskInfo
127128
CPDFTaskInfoResult taskInfo = client.getTaskInfo(taskId);
128129
```
129130

131+
132+
133+
## Samples
134+
135+
See ***"Samples"*** folder in this folder.
136+
137+
138+
130139
## Resources
131140

132141
* [ComPDFKit API Documentation](https://api.compdf.com/api/docs/introduction)

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
<groupId>com.compdf</groupId>
4545
<artifactId>compdfkit-api-java</artifactId>
46-
<version>0.0.7</version>
46+
<version>1.2.4</version>
4747

4848
<name>compdfkit-api-java</name>
4949
<description>compdfkit-api-java</description>

samples/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
<dependencies>
1616
<dependency>
1717
<groupId>com.compdf</groupId>
18-
<artifactId>compdfkit-pdf-api-java</artifactId>
19-
<version>0.0.5</version>
18+
<artifactId>compdfkit-api-java</artifactId>
19+
<version>1.2.4</version>
2020
</dependency>
2121
</dependencies>
2222

0 commit comments

Comments
 (0)