Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1020 Bytes

Readme.md

File metadata and controls

40 lines (27 loc) · 1020 Bytes

Scanning component which allows you to control work of flatbed scanner, web and digital camera and any other TWAIN device from .NET environment. You can use this library in your programs written in any programming languages compatible with .NET technology.

Fork of https://sarafftwain.codeplex.com/

Usage

.\TownSuite.TwainScanner.exe

Available output filetypes.

  • PDF
  • PNG
  • JPG
  • TIFF

Set a default selected output filetype and scanner.

.\TownSuite.TwainScanner.exe -scansettings "JPG \"Brother DS-620\"" 

Enable ocr

The following example enables ocr. To use ocr the following application arguments must be set on startup.

  • -enableocr
  • -ocrapiurl "PLACEHOLDER"
  • -ocrbearertoken "PLACEHOLDER"
  • Optionally a working directory for temp files can be set
    • -tempdir "PLACEHOLDER"
TownSuite.TwainScanner.exe -enableocr -ocrapiurl "PLACEHOLDER" -ocrbearertoken "PLACEHOLDER" -tempdir "PLACEHOLDER"