you can check one app for it. I usually use pdf reader for iphone
https://apps.apple.com/us/app/pdf-scanner-app/id1495971405 I use that app for scanning old books and saved it in pdf format. Turn any image into text in seconds with OCR function. Easily extract and edit any part of a scanned document without wasting time on rewriting it.