Catégories

Fragments En-tête/Pied PDF

Convertit HTML en PDF avec des fragments logo, titre et date

Rendez HTML en PDF et insérez des fragments d’en-tête/pied réutilisables. **Fragments pris en charge :** - Logo (image) - Titre - Date (ISO, locale ou personnalisée) - Numéros de page optionnels **Mise en page :** - Zones gauche/centre/droite - Marges pour réserver l’espace

Click to upload file or drag and drop file here

Maximum file size: 5MB Supported formats: image/png, image/jpeg, image/svg+xml, image/webp

Documentation de l'API

Point de terminaison de la requête

POST /fr/api/tools/pdf-header-footer-snippets

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 -
headerEnabled checkbox Non -
footerEnabled checkbox Non -
logoFile file (Téléchargement requis) Non -
logoWidth number Non -
headerTitle text Non -
footerTitle text Non -
showDateInHeader checkbox Non -
showDateInFooter checkbox Non -
dateFormat select Non -
customDateText text Non -
showPageNumbers checkbox Non -
waitUntil select Non -
waitTime number Non -

Les paramètres de type fichier doivent être téléchargés d'abord via POST /upload/pdf-header-footer-snippets pour obtenir filePath, puis filePath doit être passé au champ de fichier correspondant.

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-header-footer-snippets": {
      "name": "pdf-header-footer-snippets",
      "description": "Convertit HTML en PDF avec des fragments logo, titre et date",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=pdf-header-footer-snippets",
      "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.

Prend en charge les liens de fichiers URL ou la codification Base64 pour les paramètres de fichier.

Si vous rencontrez des problèmes, veuillez nous contacter à [email protected]