@@ -29,7 +29,7 @@ Project public Key : You can find the public key in [Management Panel](https://a
2929Project secret Key : You can find the secret Key in [ Management Panel] ( https://api-dashboard.compdf.com/api/keys ) .
3030
3131``` java
32- ComPDFKitClient client = new ComPDFKitClient (< publicKey> , < secretKey> );
32+ CPDFClient client = new CPDFClient (< publicKey> , < secretKey> );
3333```
3434
3535## Create Task
@@ -38,14 +38,20 @@ A task ID is automatically generated for you based on the type of PDF tool you c
3838
3939``` java
4040// Create a client
41- ComPDFKitClient client = new ComPDFKitClient (< publicKey> , < secretKey> );
41+ CPDFClient client = new CPDFClient (< publicKey> , < secretKey> );
4242
4343// Create a task
4444// Create an example of a PDF TO WORD task
45- CPDFCreateTaskResult result = client. createTask(CPDFToOfficeEnum . PDF_TO_WORD. getValue());
45+ CPDFCreateTaskResult result = client. createTask(CPDFConversionEnum . PDF_TO_WORD. getValue());
4646
4747// Get a task id
4848String taskId = result. getTaskId();
49+
50+ // Upload files
51+ client. uploadFile(< convertFile> , taskId);
52+
53+ // execute Task
54+ client. executeTask(taskId);
4955```
5056
5157## Upload Files
@@ -56,17 +62,20 @@ Upload the original file and bind the file to the task ID. The field parameter i
5662
5763``` java
5864// Create a client
59- ComPDFKitClient client = new ComPDFKitClient (< publicKey> , < secretKey> );
65+ CPDFClient client = new CPDFClient (< publicKey> , < secretKey> );
6066
6167// Create a task
6268// Create an example of a PDF TO WORD task
63- CPDFCreateTaskResult result = client. createTask(CPDFToOfficeEnum . PDF_TO_WORD. getValue());
69+ CPDFCreateTaskResult result = client. createTask(CPDFConversionEnum . PDF_TO_WORD. getValue());
6470
6571// Get a task id
6672String taskId = result. getTaskId();
6773
6874// Upload files
6975client. uploadFile(< convertFile> , taskId);
76+
77+ // execute Task
78+ client. executeTask(taskId);
7079```
7180
7281
@@ -77,11 +86,11 @@ After the file upload is completed, call this interface with the task ID to proc
7786
7887``` java
7988// Create a client
80- ComPDFKitClient client = new ComPDFKitClient (< publicKey> , < secretKey> );
89+ CPDFClient client = new CPDFClient (< publicKey> , < secretKey> );
8190
8291// Create a task
8392// Create an example of a PDF TO WORD task
84- CPDFCreateTaskResult result = client. createTask(CPDFToOfficeEnum . PDF_TO_WORD. getValue());
93+ CPDFCreateTaskResult result = client. createTask(CPDFConversionEnum . PDF_TO_WORD. getValue());
8594
8695// Get a task id
8796String taskId = result. getTaskId();
@@ -99,11 +108,11 @@ Request task status and file-related metadata based on the task ID.
99108
100109``` java
101110// Create a client
102- ComPDFKitClient client = new ComPDFKitClient (< publicKey> , < secretKey> );
111+ CPDFClient client = new CPDFClient (< publicKey> , < secretKey> );
103112
104113// Create a task
105114// Create an example of a PDF TO WORD task
106- CPDFCreateTaskResult result = client. createTask(CPDFToOfficeEnum . PDF_TO_WORD. getValue());
115+ CPDFCreateTaskResult result = client. createTask(CPDFConversionEnum . PDF_TO_WORD. getValue());
107116
108117// Get a task id
109118String taskId = result. getTaskId();
@@ -115,7 +124,7 @@ client.uploadFile(<convertFile>, taskId);
115124client. executeTask(taskId);
116125
117126// query TaskInfo
118- CTaskInfoResult taskInfo = client. getTaskInfo(taskId);
127+ CPDFTaskInfoResult taskInfo = client. getTaskInfo(taskId);
119128```
120129
121130## Resources
0 commit comments