360 Secure SkillHub
360 安全技能中心

office-to-pdf

该 Skill 通过 LibreOffice 无头模式(libreoffice --headless --convert-to pdf --outdir)把 ppt/pptx/odp、doc/docx/odt/rtf、xls/xlsx/ods 等文档转换为 PDF,支持单文件与多文件批量转换,输出到指定目录;运行前需通过 apt 安装 libreoffice。

minchocoin
minchocoin
热度 77.89
最近更新 2026-05-11 17:35:31
分类:效率依赖:代码执行 / 读写文件应用场景:文件转换

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add office-to-pdf
Metadata
name
office-to-pdf
description
Convert office files to pdf
metadata
{"openclaw":{"emoji":"📄","requires":{"bins":["libreoffice"]},"install":[{"id":"apt","kind":"apt","package":"libreoffice","bins":["libreoffice"],"label":"Install via apt"}]}}

convert office files to pdf

Convert one or more LibreOffice-supported documents to PDF with LibreOffice in headless mode. Use this skill when an OpenClaw workflow needs to normalize office files such as:

  • Presentations: .ppt, .pptx, .odp
  • Documents: .doc, .docx, .odt, .rtf
  • Spreadsheets: .xls, .xlsx, .ods

to pdf.

Command Patterns

Convert one file:

libreoffice --headless --convert-to pdf --outdir ./out ./input.pptx

Convert multiple files:

libreoffice --headless --convert-to pdf --outdir ./out ./a.docx ./b.pptx ./c.xlsx

Install

sudo apt install libreoffice