Request Workflow
When requesting the ComPDF API, the workflow is very simple: just request the file processing interface. Through this request, you can select the corresponding PDF tool to process your files and obtain the download link of the result file. If you choose asynchronous processing, you will receive a task ID. After the task is completed, you can use the task ID to query the task information.
Synchronous Request: After sending the request, you need to wait for the server to process and return a response before proceeding with subsequent operations.
Asynchronous Request: After sending the request, you do not need to wait for the server response and can directly continue subsequent tasks. The server will return a task ID, which you can use to obtain the task status and related file metadata.
Presigned URL Request: After sending the request, you will receive a presigned URL and a task ID. You can use the returned presigned URL to upload the file locally, and use the task ID to continue uploading the file, start the task, retrieve the task status, and obtain file-related metadata.
Notes
The file download link returned by the API is usually deleted by 24:00 the next day. Please download and save it in time.
When calling the API, pay attention to the parameter passing method specified in the documentation and whether a Token is required to avoid parameter confusion.
HTTP status 200 indicates that your HTTP request was successful, but it does not mean that the file was processed successfully.
If you need to access from a China IP or use a China server, replace the domain
https://api-server.compdf.com/withhttps://api-server.compdf.cn/in all request URLs.