office-export-pdf
Convert an Office document to a requested PDF with LibreOffice Kit.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 1
- Forks
- 1
01 前言 Front Matter
- name
- office-export-pdf
- description
- Convert an Office document to a requested PDF with LibreOffice Kit.
03 SKILL.md 正文
Export an Office document to PDF
Use the installed LibreOffice Kit CLI through the shell with the absolute Node and CLI paths supplied below. In Bash, invoke "<node>" "<cli>"; in PowerShell, invoke & "<node>" "<cli>". Prefer bundled LibreOffice unless the user requests another installation. If the Office sidecar is missing, follow sidecar setup: ask whether the user wants to download it and install only after they agree. Do not invoke system soffice, use npx, or install a replacement to work around a failed conversion with an installed sidecar.
Convert the final saved Office file to a new PDF in the task workspace. Preserve the source. Quote each input and output path.
"<node>" "<cli>" convert --input <final-office-file> --output <new-file.pdf>
Check the command result, nonempty output, and %PDF- file signature, then report that extent of validation. Unless the user requests deeper checks, do not search for PDF readers, generate images, or install tools to validate a conversion. Spreadsheet PDF pages follow workbook print settings; change those settings only when requested. Conversion may differ from the native application's pagination or fonts.
If export fails, preserve the usable source and report the export limitation. Do not repeatedly convert an unchanged source or use conversion to investigate a failed preview. For PDF export alone, stop after these checks. Only a request for images or visual inspection calls for office-render; load it before that separate operation. Deliver the requested PDF through present when available, keeping the file in place.
04 同仓库更多 Skills
user-only-skill
Prove model-disabled skills stay outside the model catalog.
snapshot-skill
Exercise project skill discovery and loading in snapshot tests.
model-only-skill
Prove user-disabled skills remain available to the model.
office
Create, edit, inspect, or convert Office documents, spreadsheets, presentations, and PDFs. Load to choose the relevant workflow.
office-xlsx
Read, create, edit, and validate Excel workbooks, data, and formulas (.xlsx).
office-render
Render requested document images or inspect visual layout with LibreOffice Kit.