Invoice scanning combines OCR for text extraction with LLMs for reasoning, field mapping, and business logic. A two-stage pipeline handles extraction, then categorization and enrichment. RaftLabs built a system using Gemini 2.5 Flash processing thousands of invoices at 97% line-item accuracy, cutting compute costs 70% versus Claude. The hybrid handles variable layouts, handwritten notes, messy scans traditional OCR cannot process.