dhnt kbAll pages

runbook · candidate

Make a PDF from slides or images

Cross-platform steps to export pages as images, make and combine PDFs, and turn PDF pages back into video-ready PNGs with media — WHEN a member needs a PDF deliverable from a slide or document app (keywords: media, pdf, slides, images, png, combine, pdfcraft, ffmpeg, agg)

Verified 2026-11-10
Sprint 603 M3 2026-11-10: commands and prerequisites checked against examples/media/media.bsh and its skill guide · Bashy revision 536fc71bf21457eaa21ab4bb35cd574788d12f97

Install once

Register the examples first with bashy --bashsharp examples/defaults/bashy-defaults.bsh apply from the source checkout (or run bashy-defaults apply after installing Bashy’s source pin). This registers media, cast, and record with their declared effects. Use the install line for this computer, then run media doctor. Doctor registers ffmpeg, ffprobe, agg and a SHA-256 verified pinned pdfcraft-cli; it needs network access the first time.

# macOS
brew install ffmpeg agg
# Windows (PowerShell; either agg line works)
winget install Gyan.FFmpeg --accept-source-agreements --accept-package-agreements
winget install asciinema.agg --accept-source-agreements --accept-package-agreements
# Debian/Ubuntu Linux
sudo apt install ffmpeg
cargo install --locked agg      # or install agg's release binary
media doctor

If winget’s source fails, download the ZIP from FFmpeg’s Windows essentials builds and the Windows agg.exe from asciinema/agg releases. Extract both under a folder you own, and set MEDIA_FFMPEG, MEDIA_FFPROBE, and MEDIA_AGG to their full executable paths before media doctor. Doctor registers those paths; subsequent media commands use the registered names. The pinned PdfCraft archive is fetched and verified by doctor itself.

Make the PDF

  1. In the member’s own slide or document app, export every slide/page as PNG or JPEG. Use one size and sortable names such as 01-title.png, 02-plan.png. This is the only app-specific step.
  2. Compose the plain-file verbs:
media pdf 01-title.png 02-plan.png -o deck.pdf --title "Project plan" --author "Project owner"
media combine deck.pdf appendix.pdf -o complete.pdf
media slides complete.pdf slides/       # slides/01.png, 02.png, ... for a video
  1. Open complete.pdf in any browser or PDF viewer, check page order and metadata, then share that file with the other members. media itself opens no browser and needs no camera or microphone. If this PDF later becomes a narrated video, the record page asks the member to allow camera/microphone once and press Start, Stop, then Use this; the PDF steps remain unchanged on every OS.

The reusable verbs are pdf (images to PDF), combine (PDFs to one PDF), and slides (PDF pages back to numbered PNGs). Change or repeat only the verb whose output needs work.