分类

LibreOffice Office转图片

将Office文档转换为PNG/JPG预览图,支持缩略图

支持多种Office格式,批量输出自动打包ZIP。

示例结果

2 个示例

单个DOCX缩略图PNG

从DOCX样本生成一张PNG缩略图

libreoffice-office-to-image-example1.png 查看文件
查看输入参数
{ "sourceFiles": [ "/Users/quyue/www/elysia-tools/public/samples/docx/simple.docx" ], "outputFormat": "png", "thumbnailMode": true, "maxWidth": 480 }

批量Office预览ZIP

将混合Office文件生成预览图并打包为ZIP

libreoffice-office-to-image-example2.zip 查看文件
查看输入参数
{ "sourceFiles": [ "/Users/quyue/www/elysia-tools/public/samples/docx/formatted.docx", "/Users/quyue/www/elysia-tools/public/samples/ppt/business.pptx", "/Users/quyue/www/elysia-tools/public/samples/xlsx/basic.xlsx" ], "outputFormat": "png", "thumbnailMode": true, "maxWidth": 520 }

Click to upload files or drag and drop files here

Maximum file size: 300MB Maximum files: 30
Supported formats: application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.ms-powerpoint, application/vnd.openxmlformats-officedocument.presentationml.presentation, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.oasis.opendocument.text, application/vnd.oasis.opendocument.spreadsheet, application/vnd.oasis.opendocument.presentation

关键信息

分类
Document Tools
输入类型
file, select, checkbox, number
输出类型
file
样本覆盖
4
支持 API
Yes

概览

支持多种Office格式,批量输出自动打包ZIP。

适用场景

  • 当你需要在浏览器中快速 process xml, xlsx 内容时,可以使用它。
  • 适合需要可重复输入和快速结果的 document tools 工作流。
  • 如果你想先用真实文件验证流程,再迁移到代码或 API 调用,这个工具很合适。

工作原理

  • 先输入 Office文件, 输出格式, 缩略图模式, 最大宽度。
  • 工具会处理请求并返回 file 类型的结果。
  • 针对文件类流程,建议先使用具有代表性的 xml, xlsx 测试文件验证边界情况和输出质量。

使用场景

在调试或 QA 场景下处理 xml, xlsx 数据。
在接入 API 或自动化流程前先验证输出结果。
使用代表性样本文件和边界案例测试整个流程。

用 Samples 测试

xml, xlsx, xls

相关专题

常见问题

LibreOffice Office转图片 是做什么的?

LibreOffice Office转图片 可帮助你在线 process xml, xlsx 内容,无需单独编写本地脚本或应用。

什么时候适合用这个工具?

当你需要快速完成 process 流程、验证输出结果,或需要一个浏览器内的 document tools 工具时,就适合使用它。

可以用样本数据测试这个工具吗?

可以。页面会推荐相关样本文件,方便你立即开始测试。

LibreOffice Office转图片 支持哪些输入?

LibreOffice Office转图片 支持 Office文件, 输出格式, 缩略图模式, 最大宽度 and supports file uploads for 1 field.

LibreOffice Office转图片 有 API 吗?

有。工具页包含可供脚本调用的 API 端点,方便你从手动测试过渡到自动化使用。

API 文档

请求端点

POST /zh/api/tools/libreoffice-office-to-image

请求参数

参数名 类型 必填 描述
sourceFiles file (需要先上传) -
outputFormat select -
thumbnailMode checkbox -
maxWidth number -

文件类型参数需要先通过 POST /upload/libreoffice-office-to-image 上传获取 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-office-to-image": {
      "name": "libreoffice-office-to-image",
      "description": "将Office文档转换为PNG/JPG预览图,支持缩略图",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=libreoffice-office-to-image",
      "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]