SuperAPI AI Directory

convert-slides-to-images

Design & creation

View repository

Updated 10-16 09:49

About this skill

Convert PDF slides to images

Run the convert_slides_to_images.py script to split a PDF into individual PNG images:

uv run .agents/skills/convert-slides-to-images/convert_slides_to_images.py <pdf_path> <output_dir>

Arguments

  • pdf_path (required): Path to the PDF file to convert.
  • output_dir (required): Directory to save the PNG images. Created if it doesn't exist.

Outputs

Individual PNG files named slide_1.png, slide_2.png, etc. in the output directory.

Prerequisites

Poppler utilities must be installed (provides the pdftoppm command):

  • macOS: brew install poppler
  • Ubuntu: apt-get install poppler-utils