We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

OCR text is not coming out correctly

We have a license for Aspose.Words, Aspose.pdf and Aspose.cells and evaluating the aspose.ocr product for .net.
The results are always wrong. Basically we are converting any document type to pdf and then to image to apply OCR but output is always incorrect.

here is the code I am using.

var pdfDocument = new Aspose.Pdf.Document(outputStream);

                var ocrEngine = new Aspose.OCR.OcrEngine();
                var sb = new StringBuilder();
                for (int pageCnt =1;pageCnt<=pdfDocument.Pages.Count;pageCnt++)
                    using (var imageStream = new FileStream(Path.Combine(_targetFolder, "image_" + pageCnt.ToString()+".jpg"),FileMode.Create))
                        var resolution = new Aspose.Pdf.Devices.Resolution(300);
                        var jpegDevice = new Aspose.Pdf.Devices.JpegDevice(Convert.ToInt32(pdfDocument.Pages[pageCnt].PageInfo.Width),
                            resolution, 100);
                        jpegDevice.Process(pdfDocument.Pages[pageCnt], imageStream);
                        ocrEngine.Image = Aspose.OCR.ImageStream.FromFile(Path.Combine(_targetFolder, "image_" + pageCnt.ToString()+".jpg"));
                        if (ocrEngine.Process())

output: {t'GGilGlGl,‘GGGliGGGil’'FG;`G’G,Gl nn’GGG’iln’nG<Rest of the text is trimmed due to evaluation restriction!>}

Can you tell me why this is not working.

image_1.jpg (232.5 KB)


Thank you for sharing sample with us. We have investigated the issue at our end. Initial investigation shows that the issue persists. The issue has been logged into our system with ID OCR-65 for further investigation. We will update you here once there is some information or a fix version available in this regard.

Do you have any update on the issue? or timeline to fix the issue.


This is to update you that this issue is pending for investigation. We will update you here once there is some information or a fix version available in this regard.

Hi, thanks for the response. Do you have a timeline when this can be done?


We are not in a position to share any reliable ETA for this issue as it is in the queue for investigation among other issue. We are sorry for the inconvenience.

Do you guys have any update on this?


Currently no update is available on this issue. Development on Aspose.OCR for .NET is temporarily suspended. Further to update you that we are currently working on Aspose.OCR for Cloud. We are sorry for the inconvenience.