npx skills add ...
npx skills add pamelafox/presentation-skills --skill extract-slide-text
Extract text from each page of a PDF into a markdown file using pdftotext. Produces slide_ascii.md with a heading, image reference, and extracted text per slide. USE FOR: extract text from PDF slides, get slide text content, PDF to markdown text, slide_ascii.md.
npx skills add pamelafox/presentation-skills --skill extract-slide-text
Run the extract_slide_text.py script to extract the text content of each PDF page into a structured markdown file:
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:
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-utils