OcrInput Class

Introducing a better code structure with OcrInput which allows more developer control of OCR.

This structure is the building block on which high-performing OCR applications for C# can be built.

Features include automatic or explicit image optimizations, managed safety from memory leaks, multithreading, multipage documents, OCR to PDF, OCR to HTML, and support for OCR PDF and multipage TIFF files.

Below is an example of how to use the OcrInput class effectively:

Make sure to replace "SomeOcrLibrary" with the actual namespace of your OCR library. The sample code is a general guide and may need adaptations based on the specific library or framework you're using.