You scan a paper form that someone filled out by hand. The printed text on the form is clear. The handwritten responses in the boxes are messy but legible to a human. You run OCR on the scan, hoping to make the form searchable and the handwritten answers extractable as text. The OCR result for the printed text is nearly perfect. The OCR result for the handwriting is gibberish. The recognition engine, trained on printed fonts, cannot make sense of the variable, irregular shapes of human handwriting.
Documents containing both typed and handwritten text present a dual challenge for OCR PDF engines. The printed text needs standard OCR, which works well. The handwriting needs specialized handwriting recognition, which is less accurate and requires different settings. Handling both in a single document requires a strategy that treats each content type appropriately.

Why Handwriting Is So Much Harder for OCR Engines
Printed text OCR works by matching character shapes against known font patterns. The letter "a" in 12-point Times New Roman looks nearly identical every time it appears. The OCR engine stores a model of what Times New Roman letters look like and matches against that model. Handwriting has no such model. Every person's "a" looks different. Even the same person's "a" varies from one occurrence to the next depending on the surrounding letters, writing speed, pen angle, and fatigue. There is no fixed pattern to match against.
Handwriting recognition uses machine learning models trained on thousands or millions of handwriting samples. These models learn the statistical patterns of how handwritten letters vary and can recognize characters even when they deviate significantly from any single template. The accuracy of handwriting recognition has improved dramatically with deep learning, but it still lags behind printed text recognition by a significant margin. A 2025 benchmark by the PDF Association found printed text OCR accuracy above 97% on clean scans. Handwriting recognition accuracy on the same benchmark was roughly 80% to 85%, meaning approximately one in every five to six handwritten words contains an error (PDF Association, "OCR Accuracy Benchmark Report", 2025).
Try PDF OCR
No installation needed. Works directly in your browser.
Strategies for OCR on Mixed Typed and Handwritten Documents
The most effective strategy is to separate the document into typed regions and handwritten regions and process each with the appropriate recognition engine. This separation can be done manually by cropping or masking the document into sections, or automatically by a recognition engine that detects content type per region.
WukongPDF's OCR tool detects whether each text region on the page is printed or handwritten and applies the appropriate recognition model. On a form with printed labels and handwritten answers, the labels are recognized with the printed text model at high accuracy. The handwritten answers are processed with the handwriting model at whatever accuracy the handwriting quality allows. The output is a single text layer that combines both recognition results.
Improving Handwriting OCR Accuracy Through Better Scanning
Scan quality has a larger impact on handwriting recognition than on printed text recognition. Scan at 300 DPI minimum. Higher resolution gives the recognition engine more pixels per character to analyze. Use grayscale or color mode rather than pure black and white. The subtle gray variations in a handwritten stroke carry information about letter shapes that pure black-and-white thresholding discards. A handwritten "e" where the loop is partially filled in may be recognizable in grayscale but becomes an indistinguishable blob when thresholded to black and white.
Ensure the handwriting is as dark and consistent as possible. Pencil handwriting is harder to recognize than pen because the graphite produces a fainter, more variable line. Blue or black ink on white paper produces the best contrast. Red ink, green ink, or colored paper reduce contrast and accuracy. If you control the form-filling process, specify that forms should be completed in black ink for best OCR results. This small instruction on the form itself can improve downstream data extraction accuracy by 10 to 15 percentage points.
Reviewing and Correcting Handwriting OCR Output
After OCR, the Scanned PDF text layer will have errors concentrated in the handwritten regions. The printed text will be nearly perfect. Focus your review on the handwritten answers. Open the PDF and search for common handwriting OCR errors. The number 1 is often recognized as the letter l. The number 0 is often recognized as the letter O. The letter combination "th" is often recognized as "+h" because the crossbar of the t blends into the h.
For form data that needs to be extracted into a database or spreadsheet, manual review of the handwritten fields is essential. The recognition engine provides a best guess. A human must verify that guess against the original handwriting. This verification step is where the time savings of OCR are partially offset by the need for human quality control. The net savings depend on the volume. For 10 forms, manual data entry might be faster than OCR plus review. For 500 forms, OCR plus review is dramatically faster because the review step is limited to the fields where the OCR confidence is low. WukongPDF's OCR output includes a confidence score for each recognized text block, allowing you to sort by confidence and review only the low-confidence results.
For forms that will be processed in high volumes, such as medical intake forms, insurance claims, or government applications, the form design itself can improve handwriting OCR accuracy. Design the form with separate character boxes, one box per letter, rather than a single long line for a name or address. Individual character boxes force the writer to separate their letters, which dramatically improves recognition accuracy because the OCR engine can isolate each character before attempting recognition. This is the same principle used by tax forms and immigration documents worldwide. The boxes are mildly inconvenient for the person filling out the form, but they enable automated data extraction at scale, which is the trade-off that high-volume form processing requires.
A practical quality checkpoint after OCR on mixed documents: run a search for common OCR error patterns that indicate the engine confused handwriting with printed text. Search for "cl" and verify it was not supposed to be "d." Search for "0" and verify each instance is actually a zero and not a capital O. Search for "1" and verify it is a one and not a lowercase L or capital I. These three searches catch the majority of character-level OCR errors in both printed and handwritten recognition. Fix the errors found, then run one more search for the specific names, numbers, or dates that are critical to the document's purpose. A form where the printed instructions have a typo is annoying. A form where the handwritten medication dosage is wrong is dangerous.
Try PDF OCR
No installation needed. Works directly in your browser.
