# Using OCR to redact image documents GroupDocs.Redaction supports both types of image documents for Optical Character Recognition (OCR): * image files, such as printed document scans (PNG, JPG, etc.) * embedded images within office documents (PDF, DOCX, etc.) You have to implement [IOcrConnector](https://reference.groupdocs.com/redaction/java/com.groupdocs.redaction.integration.ocr/IOcrConnector) interface and pass the instance to [RedactorSettings](https://reference.groupdocs.com/redaction/java/com.groupdocs.redaction.options/RedactorSettings) constructor. For more details, see [OCR Usage Basics]({{< ref "redaction/nodejs-java/developer-guide/advanced-usage/using-ocr/ocr-usage-basics" >}}) article. ## OCR usage limitations There are the following limitations of the OCR with GroupDocs.Redaction for Node.js via Java v21.6: * textual replacements are not supported, so you have to use color box replacements to redact text in images. * Spreadsheets, HTML and Markdown document types are not supported. We are working on removing these limitations in future releases of GroupDocs.Redaction. ## Learn more You can find details and examples of using OCR with GroupDocs.Redaction in one of these guides: ## Contents - [OCR Usage Basics](https://docs.groupdocs.com/redaction/nodejs-java/ocr-usage-basics.md) - [Use Aspose.OCR for Cloud SDK](https://docs.groupdocs.com/redaction/nodejs-java/use-aspose-ocr-for-cloud.md) - [Use Aspose.OCR for Java on-premise API](https://docs.groupdocs.com/redaction/nodejs-java/use-aspose-ocr-on-premise.md) - [Use Microsoft Azure Computer Vision API](https://docs.groupdocs.com/redaction/nodejs-java/use-microsoft-azure-computer-vision.md)