OcrCopilot

Overview

OcrCopilot is a type in Aspose.PDF FOSS for Go.

OcrCopilot recognizes text on scanned pages.

This type provides 2 methods for working with OcrCopilot objects in Go programs. Available methods include: GetTextRecognition, MakeSearchable. All public members are accessible to any Go application after installing the Aspose.PDF FOSS for Go package.

Methods

SignatureDescription
GetTextRecognition(ctx: context.Context)([]TextRecognitionResult, error)GetTextRecognition renders each target page, runs the OCR engine on it, and returns the recognized text per page.
MakeSearchable(ctx: context.Context)(int, error)MakeSearchable OCRs the document’s scanned pages and writes the recognized text back as an invisible text layer (text rendering mode 3), so the PDF becomes selectable, copyable and Ctrl+F-searchable in any viewer while its visual appearance is unchanged.

See Also