分类

LibreOffice XLSX转PDF报表

通过LibreOffice将Excel表格转换为多页PDF报表并支持批量合并

按工作簿打印设置生成PDF,支持批量转换与结果合并。

示例结果

2 个示例

批量工作簿报表PDF

转换两个XLSX并合并成单个PDF报表

libreoffice-xlsx-to-pdf-report-example1.pdf 查看文件
查看输入参数
{ "sourceFiles": [ "/Users/quyue/www/elysia-tools/public/samples/xlsx/basic.xlsx", "/Users/quyue/www/elysia-tools/public/samples/xlsx/data.xlsx" ], "singlePageSheets": false, "mergeReports": true }

单工作簿单页导出

开启每表单页模式导出单个工作簿

libreoffice-xlsx-to-pdf-report-example2.pdf 查看文件
查看输入参数
{ "sourceFiles": [ "/Users/quyue/www/elysia-tools/public/samples/xlsx/financial.xlsx" ], "singlePageSheets": true, "mergeReports": false }

Click to upload files or drag and drop files here

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

API 文档

请求端点

POST /zh/api/tools/libreoffice-xlsx-to-pdf-report

请求参数

参数名 类型 必填 描述
sourceFiles file (需要先上传) -
singlePageSheets checkbox -
mergeReports checkbox -

文件类型参数需要先通过 POST /upload/libreoffice-xlsx-to-pdf-report 上传获取 filePath,然后将 filePath 传递给对应的文件字段。

响应格式

{
  "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)"
}
文件: 文件

AI MCP 文档

将此工具添加到您的 MCP 服务器配置中:

{
  "mcpServers": {
    "elysiatools-libreoffice-xlsx-to-pdf-report": {
      "name": "libreoffice-xlsx-to-pdf-report",
      "description": "通过LibreOffice将Excel表格转换为多页PDF报表并支持批量合并",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=libreoffice-xlsx-to-pdf-report",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

你可以串联多个工具,比如:`https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`,最多20个。

支持 URL 文件链接或 Base64 编码作为文件参数。

如果遇见问题,请联系我们:[email protected]