ppt2fig Export
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's dist/ppt2fig-cli.exe is available.
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:
autofor normal uselibreofficewhen cross-platform consistency matterswpsorpowerpointonly when the user explicitly wants those backends
- Decide whether to crop.
- Use default cropping for paper figures.
- Use
--no-croponly 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 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:
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 999
Use the second command only when you need to validate page count or explain an out-of-range error.
Related skills
- Downloads
- 744All time
- Security audit
- Review
- Last updated
- 6mo ago
- Current version
- v1.1.0
- License
- MIT-0
