Skip to content

Instantly share code, notes, and snippets.

View aziis98's full-sized avatar

Antonio De Lucreziis aziis98

View GitHub Profile
@aziis98
aziis98 / !pdf-notes-to-latex-markdown.md
Created November 21, 2025 16:52
Small helper script to convert a PDF into markdown by converting pages to images and running an LLM-based OCR prompt on each image.

llm-ocr: PDF → Markdown OCR pipeline

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