Please see the Add-On documentation
OCR your documents using OCRSpace. This Add-On only works on documents that are smaller than 5MB.
This add-on serves as an example of how to write a custom OCR Add-On for DocumentCloud, using the editable text API for documents.