Identification between Handwritten scan documents Vs Digital scan documents

My Use case is: I only want to process digital scan documents (pdf) and if a handwritten document comes up I want to throw an exception.

Is there any way to identify handwritten docs in such a manner that if handwritten docs exists then it returns boolean value true. And if handwritten docs does not exits then it returns boolean value false.

Please suggest a possible way to resolve this problem.