Elysia Tools Docs
FR
Langue
ZHESPTRUFRDEEN
Retour au site
Parcourir les outils

Document Tools

Styles de Numérotation PDF

Convertit HTML en PDF avec numérotation romaine, arabe ou préfixe de chapitre

file· Résultat fichierOuvrir l'outil

Démarrage rapide

Appelez cet outil depuis votre code en trois langages.

cURL
curl -X POST 'https://api.elysiatools.com/fr/api/tools/pdf-page-numbering-styles' \
  -H 'Content-Type: application/json' \
  -d '{"htmlContent":"\n<h1>Quarterly Report</h1>\n<p>This is a generated test document.</p>\n<div style=\"page-break-after: always;\"></div>\n<h2>Second Page</h2>\n<p>More sample content.</p>\n","cssContent":"\nbody { font-family: Arial, sans-serif; }\nh1, h2 { color: #1f2937; }\np { font-size: 12pt; }\n","pageSize":"A4","landscape":false,"printBackground":true,"marginTop":20,"marginBottom":20,"marginLeft":20,"marginRight":20,"numberingStyle":"arabic","startPageNumber":1,"includeTotalPages":true,"chapterPrefixTemplate":"Chapter {chapter} - ","chapterNumber":1,"labelPrefix":"Page ","labelSuffix":"","numberPosition":"footer-right","edgeOffsetMm":10,"fontSize":10,"fontColor":"#333333","waitUntil":"networkidle0","waitTime":0}'

© 2026 Elysia Tools. Documentation développeur.

Retour au siteParcourir les outils

Référence de l'API

Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.

Point d'accès

HTTP
POST https://api.elysiatools.com/fr/api/tools/pdf-page-numbering-styles

Paramètres

NomTypeRequisDescription
htmlContenttextareaOui—
cssContenttextareaNon—
pageSizeselectNon—
landscapecheckboxNon—
printBackgroundcheckboxNon—
marginTopnumberNon—
marginBottomnumberNon—
marginLeftnumberNon—
marginRightnumberNon—
numberingStyleselectNon—
startPageNumbernumberNon—
includeTotalPagescheckboxNon—
chapterPrefixTemplatetextNon—
chapterNumbernumberNon—
labelPrefixtextNon—
labelSuffixtextNon—
numberPositionselectNon—
edgeOffsetMmnumberNon—
fontSizenumberNon—
fontColorcolorNon—
waitUntilselectNon—
waitTimenumberNon—

Format de réponse

Résultat fichier

JSON
{
  "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)"
}

Intégration MCP

Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.

Configuration du serveur

Ajoutez ce bloc à la configuration de votre client MCP :

mcp.json
{
  "mcpServers": {
    "elysiatools-pdf-page-numbering-styles": {
      "name": "pdf-page-numbering-styles",
      "description": "Convertit HTML en PDF avec numérotation romaine, arabe ou préfixe de chapitre",
      "baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-page-numbering-styles",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

Lister les outils disponibles

Après connexion au point d'accès SSE, listez les outils exposés :

tools/list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Appeler cet outil

Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :

tools/call
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "pdf-page-numbering-styles",
    "arguments": {
  "htmlContent": "\n<h1>Quarterly Report</h1>\n<p>This is a generated test document.</p>\n<div style=\"page-break-after: always;\"></div>\n<h2>Second Page</h2>\n<p>More sample content.</p>\n",
  "cssContent": "\nbody { font-family: Arial, sans-serif; }\nh1, h2 { color: #1f2937; }\np { font-size: 12pt; }\n",
  "pageSize": "A4",
  "landscape": false,
  "printBackground": true,
  "marginTop": 20,
  "marginBottom": 20,
  "marginLeft": 20,
  "marginRight": 20,
  "numberingStyle": "arabic",
  "startPageNumber": 1,
  "includeTotalPages": true,
  "chapterPrefixTemplate": "Chapter {chapter} - ",
  "chapterNumber": 1,
  "labelPrefix": "Page ",
  "labelSuffix": "",
  "numberPosition": "footer-right",
  "edgeOffsetMm": 10,
  "fontSize": 10,
  "fontColor": "#333333",
  "waitUntil": "networkidle0",
  "waitTime": 0
}
  }
}
Chaînez plusieurs outils dans une session avec une liste toolId séparée par des virgules, ex. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (20 max).

Des questions ou un problème ? Contactez [email protected]

Parcourir les outils
Ouvrir l'outil