Is it possible to know if a given PDF is digital native or has gone through some kind OCR or digitization process.

If yes, is it possible to do so programmatically?

1 Answer 1


PDF documents embed all its fonts within the document. You can get these embedded fonts information programmatically with most PDF libraries.

If there are no embedded fonts then the PDF at hand is a scanned one.
If there are only one or two fonts, then the document is OCRized.
If there are three or more fonts, then the document is a digital native.

Potentially, there can be digital native PDF with one or two fonts only but luckily for me this is an acceptable error rate.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.