Wow, this is promising. I tried on a few poorly scanned papers I've lying about. A few observations:
1. Pre-process PDF images to detect letters better?
2. Use LLMs to spell/grammar check and perhaps even auto-complete missing pieces?
3. Employ rich text to capture style (ex: lexical.dev)?
Unsure if it is feasible to bundle it all up for web.
See also: https://github.com/RajSolai/TextSnatcher / https://github.com/VikParuchuri/surya