Styles de Numérotation PDF
Convertit HTML en PDF avec numérotation romaine, arabe ou préfixe de chapitre
Générez un PDF depuis HTML et appliquez un style de numérotation.
**Styles :**
- Numéros arabes ou romains
- Préfixe de chapitre avec modèle `{chapter}`
- Total des pages et préfixes/suffixes optionnels
**Placement :**
- En-tête ou pied de page
- Décalage depuis le bord et taille de police
Documentation de l'API
Point de terminaison de la requête
POST /fr/api/tools/pdf-page-numbering-styles
Paramètres de la requête
| Nom du paramètre | Type | Requis | Description |
|---|---|---|---|
| htmlContent | textarea | Oui | - |
| cssContent | textarea | Non | - |
| pageSize | select | Non | - |
| landscape | checkbox | Non | - |
| printBackground | checkbox | Non | - |
| marginTop | number | Non | - |
| marginBottom | number | Non | - |
| marginLeft | number | Non | - |
| marginRight | number | Non | - |
| numberingStyle | select | Non | - |
| startPageNumber | number | Non | - |
| includeTotalPages | checkbox | Non | - |
| chapterPrefixTemplate | text | Non | - |
| chapterNumber | number | Non | - |
| labelPrefix | text | Non | - |
| labelSuffix | text | Non | - |
| numberPosition | select | Non | - |
| edgeOffsetMm | number | Non | - |
| fontSize | number | Non | - |
| fontColor | color | Non | - |
| waitUntil | select | Non | - |
| waitTime | number | Non | - |
Format de réponse
{
"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)"
}
Fichier:
Fichier
Documentation de MCP
Ajoutez cet outil à votre configuration de serveur MCP:
{
"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://elysiatools.com/mcp/sse?toolId=pdf-page-numbering-styles",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
Vous pouvez chaîner plusieurs outils, par ex.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 outils.
Si vous rencontrez des problèmes, veuillez nous contacter à [email protected]