Hi, facing issues with using Read PDF with OCR activity using Tesseract or UiPath Document OCR.
is that file is available with that name in that exact location?
try to check indicate that file from that activity itself by clicking on file exploreer icon on the activity.
Looks like your pdf file isn’t available at the file path provided. Try copying the file path from file explorer and paste it in the activity.
File is available in the location and selected via file explorer on the activity itself.
can you check with file exists activity which can you give the boolean output so that you can define whether that file is avaialble or is there any extension changes
The same file works with Read pdf file activity, but it fails at any OCR activity.
can you try to uninstall the package and re install and try to use it again.
and closing the project and reopen sometimes will works
Tried all those steps, but no luck. Still facing the same error.
Okay,
Open properties panel of Tesseract OCR activity, there
Check Image format, delete that Image from that value section. Save the code and again type Image you can see suggestions you can select it from there.
If that also didn’t work try to create a variable with the name of Image from value section itself
Tried this step as well. same error again.
Create a new project and add Read pdf with OCR activity and try to execute only this activity and to see the output you can use log message.
if that also didn’t work,
try with OCR engines instead of Tesseract
It looks like getting error while using any ocr engine.
That means it’s a native PDF (ie not a scan). That’s why OCR is giving you an error that there’s no vlaid image, because it’s not an image in the PDF, it’s text in the PDF.
Tried with scanned pdf as well, getting the same error.
Ensure you have pdf activities dependency and ocr dependency installed.
UiPath.PDF.Activities and UiPath.OCR.Activities
Also, Can you try below things
- use read pdf with ocr activity to read any other scanned pdf and see if that works. If it does, problem is your pdf.
- try using other ocr engines to read this pdf and see if this works.
- try specifying the range property to ocr specific page and see if it works.
Thanks for the insights. I tried all the way to read the scanned pdf files using the methods suggested.
It looks like there is some issue with OCR not working only on my machine, whereas the same code or activities works perfect to
others when they test using the xaml file i shared.
I particularly need guidance to validate why OCR is not working on my system.
Interesting ![]()
Can you please verify and confirm
-
ocr packages installed on your machine and other machine are same version?
-
UiPath studio version is same in both machines?
-
screen resolution on both machines is same?
Also could you please share screenshot of your workflow dependencies?
Since you have tried all the OCR engines either its tesseract, Microsoft etc you are still facing the same issue.
First can you try reinstalling both
- `UiPath.OCR.Activities
- `UiPath.PDF.Activities
and then please try what @sonaliaggarwal47 has suggested.
In her 3rd point 1. screen resolution on both machines is same? please check the below thing on both the machines yours and others.
Since OCR captures the pixels, there might be some issue,s and the scale and layout recommended is 100%.
I hope it helps.



