Hi Johannes,
Thank you for using Syncfusion products.
We do have support for auto detecting the rotated images in the PDF page and perform OCR, please enable the “AutoDetectRotation” property in OCRProcessor settings. Please find the code snippet for the same below:
using (OCRProcessor processor = new OCRProcessor(@"../../TesseractBinaries/"))
{
//Load a PDF document
PdfLoadedDocument lDoc = new PdfLoadedDocument(DataPathBase + "RotatedOCR1.pdf");
processor.Settings.Language = "eng";
//Enabling AutoDetectRotation property
processor.Settings.AutoDetectRotation = true;
processor.PerformOCR(lDoc, @"../../Tessdata/");
//Saving and closing the document
lDoc.Save(DataPathOutput + "Output1.pdf");
lDoc.Close(true);
} |
Also, please follow below instruction:
“Tessdata” folder should contain the file “osd.traineddata” in order to get this feature working which can be downloaded from below link:
We have created sample for the same which can be found in below link:
Please let us know if you need any further information
Regards,
Surya Kumar