Hello experts,
I'm a beginner at using PAD and I'm trying to get text via OCR out of scanned PDF files. The error message I get - independent of the choice of OCR module is:
Microsoft.Flow.RPA.Desktop.Modules.SDK.ActionException: Failed to extract text with OCR ---> System.ArgumentException: Parameter is not valid. at System.Drawing.Bitmap..ctor(String filename)
at Microsoft.Flow.RPA.Desktop.Modules.OCR.Utilities.Utilities.GetImageForOCR(OCRSource source, SourceScanMode sourceScanMode, Nullable`1 scanRegionX1, Nullable`1 scanRegionY1, Nullable`1 scanRegionX2, Nullable`1 scanRegionY2, IEnumerable`1 imagesToFind, Int32 tolerance, Boolean waitForImage, Boolean timeoutSet, Nullable`1 timeout, Nullable`1 searchRegionImageX1, Nullable`1 searchRegionImageY1, Nullable`1 searchRegionImageX2, Nullable`1 searchRegionImageY2, Action suspendSecureScreen, Action restoreSecureScreen, String imageFilepath, IImageFinder imageFinder)
bei Microsoft.Flow.RPA.Desktop.Modules.OCR.Actions.ExtractTextWithOCRBase.Execute(ActionContext context)
--- Ende der internen Ausnahmestapelüberwachung ---
bei Microsoft.Flow.RPA.Desktop.Modules.OCR.Actions.ExtractTextWithOCRBase.Execute(ActionContext context)
bei Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)
(As I'm working on a German Windows machine I tried to translate at least the beginning of the message back to English but the wording might not match exactly. Unfortunately there seems to be no option to switch languages of PAD.)
As far as I understand the message, PAD fails extracting a getting the image out of the file.
I have tried with a screenshot of the pdf and fed that PNG file to the OCR module, this worked. So could someone tell me what could have gone wrong? Can there be differences in the way a scanned PDF is made up so that PAD might be able or not to extract something?
There is another thread on this forum, "How to extract text from PDF using PAD?", that looks like the problem could be the same but I couldn't figure out what the solution post means.
Best regards, Joachim