Install
openclaw skills install ppt2fig-exportExport specific pages from PPT, PPTX, or ODP files to cropped PDF via ppt2fig. Use when the user wants to convert presentation slides into paper-ready PDF figures, specify a file path and page range, compare LibreOffice/WPS/PowerPoint export backends, or rerun a saved export workflow. Prefer this skill when `ppt2fig`, `ppt2fig-cli`, or this repo's `dist/ppt2fig-cli.exe` is available.
openclaw skills install ppt2fig-exportUse ppt2fig to export slide pages to PDF.
Workflow:
1, 2, 1,3,5-7auto for normal uselibreoffice when cross-platform consistency matterswps or powerpoint only when the user explicitly wants those backends--no-crop only when the user explicitly wants original margins.Preferred commands:
ppt2fig "/abs/path/input.pptx" --pages 2 -o "/abs/path/output.pdf"
ppt2fig "/abs/path/input.pptx" --pages 1,3,5-7 --backend libreoffice
ppt2fig "/abs/path/input.pptx" --pages 2 --backend wps
ppt2fig "/abs/path/input.pptx" --pages 2 --backend powerpoint --powerpoint-intent print
If ppt2fig is not on PATH, try:
ppt2fig-cli "/abs/path/input.pptx" --pages 2 -o "/abs/path/output.pdf"
If the binary is installed by OpenClaw or ClawHub, the helper script will first look in ~/.openclaw/tools/ppt2fig-export/ for the downloaded GitHub Release executable. If that is not present, it falls back to PATH, then to python -m ppt2fig:
python "{baseDir}/scripts/run_ppt2fig.py" "/abs/path/input.pptx" --pages 2 -o "/abs/path/output.pdf"
Behavior notes:
auto backend priority is LibreOffice > WPS > PowerPoint.--list-backends prints what the current machine can use.<input>.pages_<page-spec>.pdf when -o is omitted.--powerpoint-intent print is the highest-quality option exposed by the CLI.Useful checks:
ppt2fig --list-backends
ppt2fig "/abs/path/input.pptx" --pages 999
Use the second command only when you need to validate page count or explain an out-of-range error.