I have taken the sample code found on this website and in the GdTwain Pro 2 Reference Guide in order to scan pages of a document feeder to a multipage searchable PDF file and get an error message. The VB code is as follows:

When attempting to run this I get an error message on the line which contains the CreateImageFromTwain method:
Microsoft Visual Basic Run-time error '438': Object doesn't support this property or method.

Also, I cannot find this method in the Reference Guide, yet it is included in the Reference as sample code.

The goal here is to create a searchable PDF file from a scanned single or multi-page document. I am using GdTwain Pro ActiveX since according to the specifications I would be able to do this. I have also included the Twain1.SetLicenseNumberOCRTesseract statement when opening my form. Any assistance would be appreciated.

I modified the method as you suggested and that step is now working. It took me one line down in the code until I hit another run-time error (''5': Invalid procedure call or argument) on the line which contains TwainAddGdPictureImageToPdfOCR. The code which I used and modified for my requirements, taken from the TwainAddGdPictureImageToPdfOCR method Visual Basic sample code in the Reference Guide is:

Before hitting the run-time error the program opens a TWAIN dialog box. When I hit the New Scan button the scanning process begins. After the scanning is completed I click the Accept button. It is at this point that the error message appears. Should I be getting this dialog box?

In addition to fixing this error I want to know if there is a way to avoid having this dialog box appear.

Who is online

Stay in Touch

We frequently deliver discount coupons through our social vectors. So stay tuned!

About ORPALIS

ORPALIS produces document imaging software for developers and general public. ORPALIS maintains the comprehensive document imaging toolkit series released under the brand "GdPicture", which is now a worldwide known and respected leader in imaging technologies...more