Extracting structured data from unstructured documents (like PDFs and images) can get tricky fast. With the rise of foundation models and purpose-built APIs, it’s now possible to turn even a messy invoice into clean JSON with just a few lines of code. So I will compare three different ways to parse documents: using OpenAI’s GPT‑4o,…