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 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:
.ppt, .pptx, .odp.doc, .docx, .odt, .rtf.xls, .xlsx, .odsto pdf.
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
sudo apt install libreoffice
质量中等偏上,文档清晰易懂,安装说明和命令示例完整,新手也能快速上手。支持的文档格式丰富,覆盖常见办公软件。主要不足是缺少实际转换示例和进阶用法指导,对复杂需求的用户可能不够用。整体适合基础转换需求,但深度使用体验有提升空间。