Small helper script to convert a PDF into markdown by converting pages to images and running an LLM-based OCR prompt on each image.
Requirements
- pdftoppm (poppler-utils) — to convert PDF pages to PNG images
- aichat CLI — to run the OCR prompt against each page image