Use


How Do I Use It?

There are several ways:

Don't forget that you can right-click a "Start, Programs, ..." choice and select "Send To, Desktop" if you prefer (for example) "Scan to Documents" as the icon on your desktop.

You can also drag the desktop icon to the "Quick Launch" bar (to the right of the Start button) to scan with a single click.

If you have a lot of files in your "Documents" folder you may want to create a "New Scans" subfolder. If you do this, you can right-click a desktop (or Programs) shortcut, choose "Properties" and update the "Target" setting to place scans in your subfolder.

What Help Is Available?

This set of pages. You can also check the website or contact me via the website.

Are There Free Programs Available That Use It?

Yes. There are some free examples on the website. If there is something else that you need, please email me and I'll see what I can do.

What are the Standard Program Options?

OptionDescription
/PAPER=p

How big.

You can specify the size of the document to be scanned by using "/PAPER=p". In the above batch file I used /PAPER=A4 but you can also use LETTER, LEGAL, A3, A5, A6, B3, B4, B5, B6, C3, C4, C5, or C6. I use A4 even for smaller documents because all of my scans end up the same size when flicking through them and because I use JPG compression which means the files aren't much bigger with extra empty space.

mode

How much color.

The possible modes are: /RGB for color, /GRAY for a grayscale or /BW for black and white.

resolution

How much detail.

The resolution depends on your scanner but most will support lower resolutions (e.g. using a 1200 dots per inch scanner to do 200 DPI scans). Use /DPI=n to specify the scan resolution in dots per inch. The default is /DPI=200.

format

The format of the output file.

This can be a bitmap file (*.BMP) or a JPG file with varying degrees of compression. Possible options for this are: /BMP, /JPG25, /JPG50, /JPG75 or /JPG.

So, the command looks like: CmdTwain [paper] [mode] [resolution] [format] [path\]file

file should end in .jpg, .jpeg or .bmp

What Other Options are Available?

OptionDescription
/SOURCE

Select Scanner.

This allows you to select which scanner you will be using. Normally, you will have a single scanning device attached to your system and this option is not needed. However, some people have multiple scanners, or image transfer devices that act like scanners. In those cases it can be necessary to select which device you want to scan from. To select a scanner device, run:

CmdTwain /Source

Once you have chosen a device, it will be used for all subsequent scanning - you don't need to choose it every time. You can run this command by choosing Start, Programs, CmdTwain, Select Source.

/?

Help.

The /? option (CmdTwain /?) displays this help file.

/WH w.w h.h

Width and Height.

This option allows you to change the scan size to non-standard or unsupported sizes. Some scanners don't support a full range of paper sizes. If yours doesn't accept /PAPER=p for a size you need, try this option. You can use /IN or /CM before /WH to use inches or centimeters.

How Do I Use It With A Program?

Use system(), spawn(), Shell() etc, depending on your program's language, to run:

(InstallPath\)CmdTwain (options) (filename)

There are some examples on the website.

The default "(InstallPath\)" is "c:\Program Files\GssEzisoft\CmdTwain\". Don't forget that the operating system requires paths with embedded spaces to be quoted, eg: "c:\Program Files\fred.exe" not c:\Program Files\fred.exe as the later would attempt to run c:\Program



 

back  contents  next



© 2007-2013 GssEziSoft.com. All Rights Reserved.