Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, January 17, 2018 9:07:11 PM(UTC)

Hadi  
Hadi

Groups: Manager, Tech Support, Administrators
Posts: 218

Was thanked: 12 time(s) in 12 post(s)

The 64-bit TWAIN Free Image Scanner virtual TWAIN driver has known compatibility issues with .NET 4.5 and above as well as with the C API DLLs that are built against VS2017. If you are using this TWAIN driver as a source with our LEADTOOLS TWAIN SDK and are having any issues, you will need to upgrade the FreeImagex64.dll that is included with the driver to v3.18.0.

The latest version can be downloaded from The FreeImage Project's site here: http://freeimage.sourceforge.net/download.html

Edited by moderator Tuesday, January 29, 2019 9:31:20 AM(UTC)  | Reason: Not specified

Hadi Chami
Developer Support Manager
LEAD Technologies, Inc.

LEAD Logo
thanks 1 user thanked Hadi for this useful post.
Walter on 1/18/2018(UTC)
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, January 19, 2022 4:43:02 PM(UTC)
Christopher

Groups: Registered, Tech Support, Administrators
Posts: 89

Was thanked: 4 time(s) in 4 post(s)

Recently a user requested additional information on the steps involved in making this change.
The screenshots below show the kinds of exceptions you may see in the LEAD C# OCR Twain Scanning Demo,
and below that you will find the steps to resolve.

warningDialog.png

AND / OR

invocationException.png

Please do the following

Download and install the "TWAIN sample Data Source and Application" from Sourceforge.
TWAIN samples
zip file name (twainapp.win3264.zip)

Extract and run the x64 .msi in the - twainapp.win3264 - folder:
"twainapp.win64.installer.msi"

Now download the FreeImage library from here.

fiDL.png

In the downloaded file folder check to make sure the file version of FreeImage.dll is 3.18.0.0.
\.\.\.\FreeImage3180Win32Win64\FreeImage\Dist\x64\FreeImage.dll

Make a copy of the FreeImage.dll and place it here:
C:\Windows\twain_64\sample2
Rename the old file in this location from "FreeImagex64.dll" to "FreeImagex64_Old.dll".
Then rename the new file from "FreeImage.dll" to "FreeImagex64.dll.

Once all of this is in place, run the TWAIN_APP_CMD32.exe project located here:
C:\Program Files (x86)\TWAIN Working Group\TWAIN 2.3 App Sample
use the following commands
>> cdsm - to connect
>> lds - to get a list of available scanners
>> cds# - to open source

twainAppCommands.png

With this still running, open the LEAD OcrTwainScanningDemo located here:
C:\LEADTOOLS22\Examples\OCR\DotNet\OcrTwainScanningDemo
Be sure to update the framework
>> properties >> Application tab >> Set "Target framework" to .NET Framework 4.8

Run the OcrTwainScanning Demo project
Once open select a source by:
>> Twain >> Select Source... >> choose the "TWAIN2 FreeImage Software Scanner" virtual scanner
update the output location to where you would like the output file to be placed.

selectSourceAndOutput.png

Pressed [Scan...] at the bottom left of the form.
The secondary page of the profile is displayed and when [Scan...] is selected the pdf is created, placed in the specified location, and should automatically open in Adobe if it is a pdf.

success.png


At this point, you should have the saved image from the scan in your output location.


Chris Thompson
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.078 seconds.