That can be messy, especially with scanned contracts. I would use Google Lens to scan each needed page, copy the recognized text into Word or Google Docs, then clean up the paragraph breaks and italics there. Check every clause against the scan before using it.