The people from anyline already have a module for OCR in the app store: https://appstore.home.mendix.com/link/app/114436/Anyline/OCR-Module-from-Anyline
I try to contact them to see what possibilities there are to use the document scanning in Mendix