PDF Tools
Ajoute une signature visible texte ou image sur un PDF
Appelez cet outil depuis votre code en trois langages.
# 1) Request a presigned URL → returns { uploadUrl, storageKey }
curl -X POST 'https://api.elysiatools.com/api/upload/presign/pdf-add-signature-online' \
-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-add-signature-online' \
-H 'Content-Type: application/json' \
-d '{"filename":"signatureImage.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/fr/api/tools/pdf-add-signature-online' \
-F 'pdfFile=/public/samples/pdf/sample.pdf' \
-F 'signatureType=text' \
-F 'signatureImage=uploads/2026/01/01/your-tool-1700000000000-abc123.ext' \
-F 'signatureText=Approved' \
-F 'reason=Review complete' \
-F 'location=' \
-F 'includeDate=true' \
-F 'pageTarget=last' \
-F 'pageNumber=1' \
-F 'position=bottom-right' \
-F 'customX=36' \
-F 'customY=36' \
-F 'boxWidth=180' \
-F 'boxHeight=72' \
-F 'signatureColor=#1f2937'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST https://api.elysiatools.com/fr/api/tools/pdf-add-signature-online| Nom | Type | Requis | Description |
|---|---|---|---|
| pdfFile | fileupload requis | Oui | — |
| signatureType | select | Non | — |
| signatureImage | fileupload requis | Non | — |
| signatureText | text | Non | — |
| reason | text | Non | — |
| location | text | Non | — |
| includeDate | checkbox | Non | — |
| pageTarget | select | Non | — |
| pageNumber | number | Non | — |
| position | select | Non | — |
| customX | number | Non | — |
| customY | number | Non | — |
| boxWidth | number | Non | — |
| boxHeight | number | Non | — |
| signatureColor | color | Non | — |
Résultat fichier
{
"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)"
}Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-pdf-add-signature-online": {
"name": "pdf-add-signature-online",
"description": "Ajoute une signature visible texte ou image sur un PDF",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-add-signature-online",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "pdf-add-signature-online",
"arguments": {
"pdfFile": "/public/samples/pdf/sample.pdf",
"signatureType": "text",
"signatureImage": "https://example.com/file.ext",
"signatureText": "Approved",
"reason": "Review complete",
"location": "",
"includeDate": true,
"pageTarget": "last",
"pageNumber": 1,
"position": "bottom-right",
"customX": 36,
"customY": 36,
"boxWidth": 180,
"boxHeight": 72,
"signatureColor": "#1f2937"
}
}
}Des questions ou un problème ? Contactez [email protected]