Extracts text content from each page of a PDF file using pdftotext and writes it to a markdown file. The output includes a heading, an image reference, and the extracted text for each slide.
Say it in your own words; the assistant finds this recipe by itself. Examples:
Use this skill when you need to convert the textual content of a PDF presentation into a structured markdown format. It is ideal for creating a text-based record of slides or preparing data for further text analysis. It is particularly useful when you need ground-truth text to verify slide content without relying on visual interpretation.
Run the extract_slide_text.py script to extract the text content of each PDF page into a structured markdown file:
uv run .agents/skills/extract-slide-text/extract_slide_text.py <pdf_path> <output_path> [images_dir]
pdf_path (required): Path to the PDF file.output_path (required): Path to write the output markdown fileimages_dir (optional): Path to the slide images directory. Used to generate correct relative image references. Defaults to slide_images/.A markdown file with one section per slide:
## Slide 1

\```
Extracted text content from slide 1
\```
## Slide 2

\```
Extracted text content from slide 2
\```
Pages with no extractable text (e.g., full-bleed images) show (no extractable text).
PDF text extraction is deterministic — it produces ground-truth slide content without relying on vision models. This prevents misidentification of embedded screenshots or demo captures as actual slide content, a common failure mode when using only image-based slide analysis.
Poppler utilities must be installed (provides the pdftotext command):
brew install popplerapt-get install poppler-utilsLICENSESKILL.mdextract_slide_text.pyVendored from pamelafox/presentation-skills, commit 2b809b3a8d2f, path .agents/skills/extract-slide-text, licence MIT. The upstream licence file ships inside the skill.