dnvriend/pdf-to-pptx-tool
Overview
This skill converts PDF documents into editable PowerPoint (.pptx) presentations using a professional CLI tool. It produces one slide per PDF page, with configurable image quality and multi-level verbosity for debugging. It targets workflows that need reliable, high-quality PDF-to-PPTX conversions from the command line.
How this skill works
The tool renders each PDF page to a high-resolution image (PNG) using the system poppler library, then embeds each image as a full-slide background in a 16:9 PowerPoint file. You control output quality with a --dpi option (72–600), and use -v/-vv/-vvv flags to adjust logging from warnings to trace-level internals. It validates inputs, creates or overwrites the output .pptx, and returns standard exit codes for scripting.
When to use it
- Convert multi-page PDF reports into presentation slides quickly
- Create editable slide decks from PDFs while preserving layout and visuals
- Control output quality for screen or print with custom DPI settings
- Debug or monitor conversions using progressive verbosity levels
- Batch-process many PDFs in shell scripts or CI pipelines
Best practices
- Start with the default 200 DPI for a good balance of quality and size
- Use -vv or -vvv when troubleshooting conversion issues or memory problems
- Test conversions on a sample PDF before running large batches
- Prefer absolute paths and ensure write permissions for the output location
- Lower DPI to reduce file size and speed up conversions when quality is not critical
Example use cases
- Turn an annual report PDF into presentation slides for executive meetings
- Convert technical diagrams in a PDF to high-quality slides using 300 DPI
- Batch-convert a folder of PDF brochures into .pptx for a marketing review
- Integrate PDF-to-PPTX conversion into automation scripts or CI jobs
- Generate quick preview slides at 150 DPI for review and collaboration
FAQ
Install the poppler system library (pdftoppm) and have Python and required packages available.
Why are my slides very large?
High DPI settings increase image size. Reduce --dpi (for example to 150 or 200) to shrink output file size.