PDF Tools
Genere un filigrane dynamique interne/confidentiel avec utilisateur et horodatage
Appelez cet outil depuis votre code en trois langages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/pdf-watermark-confidential' \
-F 'file=@/path/to/sourceFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/fr/api/tools/pdf-watermark-confidential' \
-F 'sourceFile=/Users/quyue/www/elysia-tools/public/samples/pdf/pdf-2026-02-19-source-4pages.pdf' \
-F 'username=alice.wang' \
-F 'policyText=INTERNAL USE ONLY' \
-F 'timestampMode=iso' \
-F 'opacity=0.22' \
-F 'rotateDeg=-30' \
-F 'fontSize=26' \
-F 'colorHex=#b91c1c' \
-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-watermark-confidential| Nom | Type | Requis | Description |
|---|---|---|---|
| sourceFile | fileupload requis | Oui | — |
| username | text | Oui | — |
| policyText | select | Non | — |
| timestampMode | select | Non | — |
| opacity | number | Non | — |
| rotateDeg | number | Non | — |
| fontSize | number | Non | — |
| colorHex | color | 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-watermark-confidential": {
"name": "pdf-watermark-confidential",
"description": "Genere un filigrane dynamique interne/confidentiel avec utilisateur et horodatage",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-watermark-confidential",
"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-watermark-confidential",
"arguments": {
"sourceFile": "/Users/quyue/www/elysia-tools/public/samples/pdf/pdf-2026-02-19-source-4pages.pdf",
"username": "alice.wang",
"policyText": "INTERNAL USE ONLY",
"timestampMode": "iso",
"opacity": 0.22,
"rotateDeg": -30,
"fontSize": 26,
"colorHex": "#b91c1c",
"tile": true
}
}
}Des questions ou un problème ? Contactez [email protected]