We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

OCR - does the engine autodetect rotation of images in the PDF?

Thread ID:





132660 Sep 14,2017 11:11 AM UTC Sep 15,2017 11:02 AM UTC WPF 1
Tags: PDF
Asked On September 14, 2017 11:11 AM UTC

I am trying to optimize OCR scanning using the library.

It seems that rotated images with text are not recognized or purely recognized.

How can I ensure that rotation of particular pages are identified and prerotated before the OCR engine scans the page?

Thanks in advance

Surya Kumar [Syncfusion]
Replied On September 15, 2017 11:02 AM UTC

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"); 
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 

Surya Kumar 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon