office-export-pdf
Skill by deepseek-ai
Converts a saved Office document into a new PDF using the LibreOffice Kit CLI. It is for assistants that need a PDF export from an Office file in the task workspace.
Install office-export-pdf
Built from the published package, never by AI.
git clone --depth 1 https://github.com/deepseek-ai/deepseek-harness /tmp/deepseek-harness && mkdir -p ~/.claude/skills && cp -r /tmp/deepseek-harness/packages/skill/skill-office/assets/office-export-pdf ~/.claude/skills/office-export-pdfRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/deepseek-ai/deepseek-harness /tmp/deepseek-harness && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/deepseek-harness/packages/skill/skill-office/assets/office-export-pdf ~/.gemini/antigravity-cli/skills/office-export-pdfAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The office-export-pdf skill converts a saved Office document into a new PDF using the LibreOffice Kit command line tool. The assistant runs the CLI through the shell with the Node and CLI paths supplied in the skill, writes the PDF to the task workspace, and keeps the original file. It prefers the bundled LibreOffice and does not call system soffice or npx.
After conversion, the assistant checks the command result, that the output is nonempty, and the %PDF- file signature, then reports only that level of validation. If the Office sidecar is missing, it asks the user before downloading it. Image output or visual inspection needs the separate office-render skill. The skill is aimed at tasks that need a PDF export from an Office file.
Written from the project's SKILL.md and checked against it.
What it can do
- Office to PDF conversionConverts a final saved Office file to a new PDF through the LibreOffice Kit CLI.
- Output validationChecks the command result, a nonempty output file, and the %PDF- file signature.
- Sidecar setup guidanceAsks before downloading the Office sidecar if it is missing and follows the sidecar setup reference.
- PDF deliveryDelivers the requested PDF through present when that tool is available, keeping the file in place.
What you need
- Node.js, using the absolute Node path supplied to the skill
- LibreOffice Kit CLI, bundled or installed as the Office sidecar
Try asking
- Convert my final report.docx to a PDF in this workspace
- Export this spreadsheet to PDF and keep the original file
- Turn the slides in deck.pptx into a PDF and share it
Good to know
- Conversion may differ from the native application's pagination or fonts.
- Spreadsheet PDF pages follow the workbook print settings unless the user asks for changes.
- Does not fall back to system soffice, npx, or a replacement install when a conversion fails.
- Image output and visual inspection require the separate office-render skill.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: packages/skill/skill-office/assets/office-export-pdf/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md2 KB
Alternatives to office-export-pdf
All alternatives →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr
office-export-pdf: common questions
Does the skill change my original Office file?
No. The skill states that it preserves the source and writes the result to a new PDF file in the task workspace.
How does the skill check that the PDF is valid?
It checks the command result, that the output is nonempty, and the %PDF- file signature. It does not run deeper checks unless the user asks.
What happens if the export fails?
The skill keeps the usable source and reports the export limitation. It does not repeatedly convert an unchanged source.
How do I install office-export-pdf?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is office-export-pdf free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is office-export-pdf safe to use?
It scores 84 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to office-export-pdf?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
