PDF Tools
Applique des filigranes texte a plusieurs PDF avec rotation, opacite et mosaïque
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-batch-watermark' \
-H 'Content-Type: application/json' \
-d '{"filename":"sourceFiles.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-batch-watermark' \
-F 'sourceFiles=uploads/2026/01/01/your-tool-1700000000000-abc123.ext' \
-F 'watermarkText=CONFIDENTIAL' \
-F 'watermarkColor=#D93838' \
-F 'rotateDeg=-30' \
-F 'opacity=0.2' \
-F 'fontSize=48' \
-F 'tile=true'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-batch-watermark| Nom | Type | Requis | Description |
|---|---|---|---|
| sourceFiles | fileupload requis | Oui | — |
| watermarkText | text | Non | — |
| watermarkColor | color | Non | — |
| rotateDeg | number | Non | — |
| opacity | number | Non | — |
| fontSize | number | Non | — |
| tile | checkbox | 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-batch-watermark": {
"name": "pdf-batch-watermark",
"description": "Applique des filigranes texte a plusieurs PDF avec rotation, opacite et mosaïque",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-batch-watermark",
"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-batch-watermark",
"arguments": {
"sourceFiles": "https://example.com/file.ext",
"watermarkText": "CONFIDENTIAL",
"watermarkColor": "#D93838",
"rotateDeg": -30,
"opacity": 0.2,
"fontSize": 48,
"tile": true
}
}
}Des questions ou un problème ? Contactez [email protected]