Extracting structured data from invoices and contracts with one API call


I've been working on a document analysis API and wanted to share a pattern that saved me from writing custom parsers for every document type my clients throw at me.




The problem


If you work with LATAM businesses, you know the pain: invoices in PDF (sometimes...