PDF Tools
Sign PDFs with a PKCS#12 certificate using an ETSI CAdES detached signature.
Call this tool from your code in three languages.
# 1) Request a presigned URL → returns { uploadUrl, storageKey }
curl -X POST 'https://api.elysiatools.com/api/upload/presign/pdf-pades-certificate-signer' \
-H 'Content-Type: application/json' \
-d '{"filename":"pdfFile.ext","contentType":"application/octet-stream","size":12345}'
curl -X POST 'https://api.elysiatools.com/api/upload/presign/pdf-pades-certificate-signer' \
-H 'Content-Type: application/json' \
-d '{"filename":"certificateFile.ext","contentType":"application/octet-stream","size":12345}'
# 2) PUT the file bytes directly to the presigned uploadUrl
curl -X PUT '<presigned uploadUrl>' \
--data-binary @/path/to/file.ext
# 3) Call the tool, passing the returned storageKey for each file field
curl -X POST 'https://api.elysiatools.com/en/api/tools/pdf-pades-certificate-signer' \
-F 'pdfFile=/public/processing/smoke-test-document.pdf' \
-F 'certificateFile=/public/processing/smoke-pades-signer.p12' \
-F 'certificatePassword=elysia-smoke-password' \
-F 'signerName=Elysia Tools Signer' \
-F 'reason=Document approval' \
-F 'location=Shanghai' \
-F '[email protected]' \
-F 'visibleSignature=true' \
-F 'pageNumber=1' \
-F 'signatureX=40' \
-F 'signatureY=35' \
-F 'signatureWidth=220' \
-F 'signatureHeight=42' \
-F 'signatureLength=16384'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/pdf-pades-certificate-signer| Name | Type | Required | Description |
|---|---|---|---|
| pdfFile | fileupload required | Yes | — |
| certificateFile | fileupload required | Yes | — |
| certificatePassword | text | No | — |
| signerName | text | Yes | — |
| reason | text | No | — |
| location | text | No | — |
| contactInfo | text | No | — |
| visibleSignature | checkbox | No | — |
| pageNumber | number | No | — |
| signatureX | number | No | — |
| signatureY | number | No | — |
| signatureWidth | number | No | — |
| signatureHeight | number | No | — |
| signatureLength | number | No | — |
File result
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-pdf-pades-certificate-signer": {
"name": "pdf-pades-certificate-signer",
"description": "Sign PDFs with a PKCS#12 certificate using an ETSI CAdES detached signature.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-pades-certificate-signer",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "pdf-pades-certificate-signer",
"arguments": {
"pdfFile": "/public/processing/smoke-test-document.pdf",
"certificateFile": "/public/processing/smoke-pades-signer.p12",
"certificatePassword": "elysia-smoke-password",
"signerName": "Elysia Tools Signer",
"reason": "Document approval",
"location": "Shanghai",
"contactInfo": "[email protected]",
"visibleSignature": true,
"pageNumber": 1,
"signatureX": 40,
"signatureY": 35,
"signatureWidth": 220,
"signatureHeight": 42,
"signatureLength": 16384
}
}
}Questions or issues? Contact [email protected]