Catégories

Pack XLSX de Configuration d Impression

Configure papier, marges, echelle, titres repetes et entete/pied

Applique une configuration d impression coherente sur plusieurs feuilles.

Exemples de résultats

1 Exemples

Appliquer la mise en page d impression

Definit papier, echelle, titres repetes et entete

xlsx-print-setup-pack-example1.xlsx Voir fichier
Voir paramètres d'entrée
{ "workbookFile": "/public/samples/xlsx/finance-source.xlsx", "paperSize": "a4", "orientation": "landscape", "marginsJson": "{\n \"top\": 0.5,\n \"bottom\": 0.45,\n \"left\": 0.3,\n \"right\": 0.3,\n \"header\": 0.2,\n \"footer\": 0.2\n}", "fitToWidth": 1, "fitToHeight": 0, "repeatTitleRows": "1:2", "headerText": "&LFinance Pack&CQ1 Summary&RPage &P of &N", "footerText": "&LInternal Use Only&R&D" }

Click to upload file or drag and drop file here

Maximum file size: 200MB Supported formats: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel

Documentation de l'API

Point de terminaison de la requête

POST /fr/api/tools/xlsx-print-setup-pack

Paramètres de la requête

Nom du paramètre Type Requis Description
workbookFile file (Téléchargement requis) Oui -
sheetNames text Non -
paperSize select Non -
orientation select Non -
marginsJson textarea Non -
scalePercent number Non -
fitToWidth number Non -
fitToHeight number Non -
repeatTitleRows text Non -
repeatTitleColumns text Non -
printArea text Non -
headerText text Non -
footerText text Non -
horizontalCentered checkbox Non -
verticalCentered checkbox Non -
showGridLines checkbox Non -

Les paramètres de type fichier doivent être téléchargés d'abord via POST /upload/xlsx-print-setup-pack 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-xlsx-print-setup-pack": {
      "name": "xlsx-print-setup-pack",
      "description": "Configure papier, marges, echelle, titres repetes et entete/pied",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=xlsx-print-setup-pack",
      "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]