EZTwain Pro - TWAIN from Delphi™

Overview  Download  Licensing  Features  Code Wizard  Stories  User GuidePDF file

Precise control of TWAIN scanning and image capture for Delphi programmers. EZTwain Pro 3 includes a complete Delphi interface unit (eztwain.pas) translated automatically from the eztwain.h C/C++ header file. See the EZTwain Pro product page, or download the developer kit and look in the Delphi sub-folder.

Our Code Wizard (part of the EZTwain toolkit) now generates Delphi code. For example, if you tell the Code Wizard you want to scan all the pages in a document feeder at 300 DPI in black & white, simplex (front side only), and write them into a single PDF file, here is the code it generates:

var fileName: array [0..260] of Char;
begin
    fileName := 'c:\multipage.pdf';
    TWAIN_LogFile(1);
    TWAIN_SetHideUI(1);
    if TWAIN_OpenDefaultSource()=1 then
    begin
        TWAIN_SelectFeeder(1);
        TWAIN_EnableDuplex(0);
        TWAIN_SetPixelType(0);
        TWAIN_SetBitDepth(1);
        TWAIN_SetResolution(300);
        TWAIN_SetAutoScan(1);
        TWAIN_AcquireMultipageFile(self.Handle, fileName)
    end
    else
        TWAIN_ReportLastError('Unable to scan.')
    end

If you wish to redistribute the EZTwain Pro DLLs with an application, or within an organization, see the EZTwain Pro Licensing Page.

Please contact Dosadi technical support if you encounter any problems using EZTwain Pro 3 from Delphi. We are committed to resolving such problems promptly.