PDF Generation Template Editor
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Remove password protection from one encrypted PDF. Enter the source PDF open password or owner password in `password`.
| Download validity | 24 hours |
| Field | Type | Description |
|---|---|---|
code | String | Business status code |
msg | String | Message |
data | Object | Response data |
data.fileKey | String | Unique key of the file in the storage system. |
data.taskId | String | Task ID |
data.fileName | String | Source file name. Required in presigned mode to generate the object storage upload URL. |
data.downFileName | String | Output file name after conversion. |
data.fileUrl | String | Source file storage URL or object storage key. |
data.downloadUrl | String | File download URL |
data.sourceType | String | Source file type |
data.targetType | String | Target file type |
data.fileSize | Integer | Source file size in bytes. |
data.convertSize | Integer | Converted file size in bytes. |
data.convertTime | Integer | Conversion time for a single file, typically in milliseconds. |
data.status | String | File processing status. Common values: success, failed, processing, etc. |
data.failureCode | String | Error code when file conversion fails. |
data.failureReason | String | Error reason when file conversion fails. |
data.fileParameter | String | Conversion parameter JSON string submitted when creating the task. |
curl --request POST \
--url https://api-server.compdf.com/server/v2/process/pdf/decrypt \
--header 'x-api-key: YOUR API-KEY' \
--form [email protected]{
"code": "200",
"msg": "success",
"data": {
"fileKey": "saas/2026/06/30/[email protected]",
"taskId": "bce85055-093a-49da-94c3-7f3fdf3ee527",
"fileName": "encrypted.pdf",
"downFileName": "decrypted.pdf",
"fileUrl": "https://example.com/source.pdf",
"downloadUrl": "https://example.com/result.pdf",
"sourceType": "pdf",
"targetType": "decrypt",
"fileSize": 123456,
"convertSize": 123000,
"convertTime": 1200,
"status": "success",
"failureCode": null,
"failureReason": null,
"fileParameter": "{\"outputFileName\":\"decrypted.pdf\"}"
}
}