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. Image for the cookie policy date
close icon

OCR on PDF sample application is not working

Running the samle there is an unhandelt error.

Debugging the sample solution in VS 2013 ther ist an unhandlet exception in mscorlib.dll:

FormatException was unhandled
An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll


line 371:

processor.PerformOCR(lDoc, GetFullTemplatePath(@"OCR/Tessdata/"));


line 330:
Application.Run(new Form1());


   bei System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
   bei System.Double.Parse(String s)
   bei Syncfusion.OCRProcessor.OCRProcessor.PerformOCR(PdfLoadedDocument lDoc, Int32 startIndex, Int32 endIndex, String dataPath)
   bei Syncfusion.OCRProcessor.OCRProcessor.PerformOCR(PdfLoadedDocument lDoc, String dataPath)
   bei EssentialPDFSamples.Form1.button1_Click(Object sender, EventArgs e) in c:\Users\Klaus-Dieter\AppData\Local\Syncfusion\EssentialStudio\11.4.0.26\Windows\Pdf.Windows\Samples\OCR\PDF OCR\CS\Form1.cs:Zeile 371.
   bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   bei System.Windows.Forms.Control.WndProc(Message& m)
   bei System.Windows.Forms.ButtonBase.WndProc(Message& m)
   bei System.Windows.Forms.Button.WndProc(Message& m)
   bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   bei System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   bei System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   bei EssentialPDFSamples.Form1.Main() in c:\Users\Klaus-Dieter\AppData\Local\Syncfusion\EssentialStudio\11.4.0.26\Windows\Pdf.Windows\Samples\OCR\PDF OCR\CS\Form1.cs:Zeile 330.
   bei System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   bei System.Threading.ThreadHelper.ThreadStart()


1 Reply

KC Karthikeyan Chandrasekar Syncfusion Team December 23, 2013 04:21 AM UTC

Hi Klaus,

Thank you for using Syncfusion Products.

 

Could you please follow the incident 117265 which you have created for this same issue.

Please let us know if you have any concern.

 

Thanks,

Karthikeyan.C


Loader.
Live Chat Icon For mobile
Up arrow icon