using IronOcr;
var ocrTesseract = new IronTesseract();
using var ocrInput = new OcrInput();
ocrInput.LoadImage(@"images\page1.png");
ocrInput.LoadImage(@"images\page2.bmp");
var page = new int[]{ 2, 3 };
ocrInput.LoadImageFrames(@"images\page3.tiff", page);
ocrInput.Deskew();
var ocrResult = ocrTesseract.Read(ocrInput);
ocrResult.SaveAsSearchablePdf("searchable.pdf");
Imports IronOcr
Private ocrTesseract = New IronTesseract()
Private ocrInput = New OcrInput()
ocrInput.LoadImage("images\page1.png")
ocrInput.LoadImage("images\page2.bmp")
Dim page = New Integer(){ 2, 3 }
ocrInput.LoadImageFrames("images\page3.tiff", page)
ocrInput.Deskew()
Dim ocrResult = ocrTesseract.Read(ocrInput)
ocrResult.SaveAsSearchablePdf("searchable.pdf")