分类

LibreOffice DOCX转PDF

通过LibreOffice批量将.doc/.docx转换为PDF并保留排版

支持批量转换,多个结果会自动合并为一个PDF输出。

示例结果

2 个示例

批量DOCX合并为单个PDF

将两个DOCX转换后合并为一个PDF

libreoffice-docx-to-pdf-example1.pdf 查看文件
查看输入参数
{ "sourceFiles": [ "/Users/quyue/www/elysia-tools/public/samples/docx/simple.docx", "/Users/quyue/www/elysia-tools/public/samples/docx/formatted.docx" ] }

表格与格式文档导出

转换包含表格与格式文本的DOCX文档

libreoffice-docx-to-pdf-example2.pdf 查看文件
查看输入参数
{ "sourceFiles": [ "/Users/quyue/www/elysia-tools/public/samples/docx/table.docx", "/Users/quyue/www/elysia-tools/public/samples/docx/formatted.docx" ] }

Click to upload files or drag and drop files here

Maximum file size: 200MB Maximum files: 30
Supported formats: application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document

API 文档

请求端点

POST /zh/api/tools/libreoffice-docx-to-pdf

请求参数

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

文件类型参数需要先通过 POST /upload/libreoffice-docx-to-pdf 上传获取 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-docx-to-pdf": {
      "name": "libreoffice-docx-to-pdf",
      "description": "通过LibreOffice批量将.doc/.docx转换为PDF并保留排版",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=libreoffice-docx-to-pdf",
      "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]