Transforming scans into usable documents with AI