After Take Photo…, Scan Document… and Attach Photo, offer to insert the recognized text below the link. DocumentScanner.swift already uses Vision. Also a command to extract text from an image already attached.
Optional: index recognized text for Search Notes without writing it to the file.
Platforms: iOS; the extract command on the Mac too.