- name
- ppt2fig-export
- description
- Export 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'sdist/ppt2fig-cli.exeis available. - homepage
- https://github.com/elliottzheng/ppt2fig
- metadata
- {"openclaw":{"homepage":"https://github.com/elliottzheng/ppt2fig","skillKey":"ppt2fig-export","always":true,"os":["win32"],"install":[{"id":"ppt2fig-cli-win64","kind":"download","os":["win32"],"url":"https://github.com/elliottzheng/ppt2fig/releases/latest/download/ppt2fig-cli.exe","targetDir":"~/.openclaw/tools/ppt2fig-export","label":"Download ppt2fig CLI for Windows"}]}}
Use ppt2fig to export slide pages to PDF.
Workflow:
- Confirm the source presentation path exists.
- Decide the page selection string.
Examples: 1, 2, 1,3,5-7
- Decide the backend.
Defaults: - auto for normal use - libreoffice when cross-platform consistency matters - wps or powerpoint only when the user explicitly wants those backends
- Decide whether to crop.
- Use default cropping for paper figures. - Use --no-crop only when the user explicitly wants original margins.
- Run the command.
- Return the output PDF path and any backend-specific notes.
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 printIf 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:
autobackend priority isLibreOffice > WPS > PowerPoint.--list-backendsprints what the current machine can use.- Page numbers are 1-based.
- Output defaults to
<input>.pages_<page-spec>.pdfwhen-ois omitted. - PowerPoint image quality is limited by Microsoft's export API;
--powerpoint-intent printis the highest-quality option exposed by the CLI.
Useful checks:
ppt2fig --list-backends
ppt2fig "/abs/path/input.pptx" --pages 999Use the second command only when you need to validate page count or explain an out-of-range error.