How do I extract text from a handwritten then scanned document?

Title. I have a pdf that was scanned from a handwritten document.

You need AI/ML model or strong OCR which can read handwritten text. You will get online details on OCR’s that can read handwritten text.

Try to use Abby OCR or Tesseract i have used to extract handwritten data. it worked well try using this.