Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
Save the Children

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Surveys

Features
HOWTOs
News Archive
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 196 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  

scanadf




SYNOPSIS

       scanadf  [-d|--device-name  dev]  [-h|--help]  [-L|--list-
       devices]  [-v|--verbose]  [-V|--version] [-o|--output-file
       name]  [-S|--scan-script  name]   [-s|--start-count   num]
       [-e|--end-count num] [-r|--raw] [device-specific-options]


DESCRIPTION

       scanadf  is  a  command-line  interface  to  control image
       acquisition devices  which  are  capable  of  returning  a
       series  of  images (e.g. a scanner with an automatic docu­
       ment feeder (ADF)).  The device is controlled via command-
       line options.  After command-line processing, scanadf nor­
       mally proceeds to acquire a series  of  images  until  the
       device returns the SANE_STATUS_NO_DOCS status code.

       The  images  are written to output files, specified by the
       --output-file option.  These files are  typically  written
       in  one  of  the  PNM  (portable  aNyMaP) formats (PBM for
       black-and-white images, PGM for grayscale images, and  PPM
       for   color   images).   Several  optional  frame  formats
       (SANE_FRAME_JPEG,    SANE_FRAME_G31D,     SANE_FRAME_G32D,
       SANE_FRAME_G42D,  and  SANE_FRAME_TEXT) are supported.  In
       each case, the data is written out to the output file  as-
       is  without a header.  Unrecognized frame formats are han­
       dled in the  same  way,  although  a  warning  message  is
       printed in verbose mode.

       Typically, the optional frame formats are used in conjunc­
       tion with a scan script  (specified  by  the  --scanscript
       option)  which  is  invoked  for each acquired image.  The
       script is provided with a series of environment  variables
       which  describe  the  parameters  and  format of the image
       file.

       scanadf accesses image  acquisition  devices  through  the
       SANE (Scanner Access Now Easy) interface and can thus sup­
       port any device for which there exists a SANE backend (try
       "apropos sane-" to get a list of available backends).


OPTIONS

       The -d or --device-name options must be followed by a SANE
       device-name.  A (partial) list of available devices can be
       obtained  with  the --list-devices option (see below).  If
       no  device-name  is  specified  explicitly,  scanadf  will
       attempt to open the first available device.

       The  -h  or  --help options request help information.  The
       information is printed on  standard  output  and  in  this
       case, no attempt will be made to acquire an image.

       The  -L or --list-devices option requests a (partial) list
       The -V or --version option requests that scanadf print the
       program and package name, as well as the version number of
       the SANE distribution that it came with.

       The -o or --output-file option specifies a  format  string
       used  to generate the name of file to write the image data
       to.  You can use %d replacement in the output  file  name;
       this  will  be replaced with the current page number.  The
       default format string is image-%04d.

       The -S or  --scan-script  option  specifies  the  name  of
       script  to  run after each scanned image is acquired.  The
       script receives the name of the image output file  as  its
       first  and  only  command line argument.  Additionally the
       scan script can reference the following environment  vari­
       ables  to  get  information  about  the  parameters of the
       image.

              SCAN_RES - the image resolution (in DPI)
              SCAN_WIDTH - the image width (in pixels)
              SCAN_HEIGHT - the image height (in pixels)
              SCAN_DEPTH - the image bit-depth (in bits)
              SCAN_FORMAT - a string representing the image  for­
              mat (e.g. gray, g42d, text, etc)
              SCAN_FORMAT_ID  -  the numeric image format identi­
              fier

       The -s or --start-count option specifies the  page  number
       of first scanned image.

       The  -e or --end-count option specifies the last page num­
       ber to scan.  Using this option, you can  request  a  spe­
       cific  number of pages to be scanned, rather than scanning
       until there are no more images available.

       The -r or --raw option specifies that the raw  image  data
       be  written  to  the output file as-is without interpreta­
       tion.  This disables the writing of  the  PNM  header  for
       basic  frame  types.  This feature is usually used in con­
       junction with the  --scan-script  option  where  the  scan
       script  uses  the  environment variables to understand the
       format and parameters of the image and converts  the  file
       to  a  more  useful  format.   NOTE:  With support for the
       optional frame types and the default handling of  unrecog­
       nized  frametypes,  this option becomes less and less use­
       ful.


FILES

       /etc/sane.d
              This directory holds various  configuration  files.
              For  details,  please  refer  to  the  manual pages
              listed below.


SEE ALSO

       scanimage(1), xscanimage(1), sane(7)


AUTHOR

       scanadf is an adaptation by Tom Martone  of  scanimage  by
       David  Mosberger, Andreas Beck, and Gordon Matzigkeit fol­
       lowing closely the features of bnhscan by Sean Reifschnei­
       der of tummy.com, ltd.


BUGS

       Please send reports to sane-devel@mostang.com

       This program relies on the backend to return the SANE_STA­
       TUS_NO_DOCS status code when the automatic document feeder
       is  out  of paper.  Use of this program with backends that
       do not support ADFs (e.g. flatbed  scanners)  will  likely
       result  in  repeated  scans of the same document.  In this
       case, it is essential to use the start-count and end-count
       to control the number of images acquired.

       Only  a  subset  of  the SANE backends support feeders and
       return SANE_STATUS_NO_DOCS appropriately.  Backends  which
       are known to work at this time are:

              sane-bh  - Bell+Howell Copiscan II series scanners.
              sane-hp - Hewlett Packard scanners.  A patch to the
              sane-hp  backend  is necessary.  The --scantype=ADF
              option must be specified (earlier versions  of  the
              backend  used the --scan-from-adf option, instead).
              sane-umax - UMAX scanners.  Support exists in build
              12  and  later.   The  --source="Automatic Document
              Feeder" option must be specified.

                           15 Sep 1999                 scanadf(1)
  

There are several different ways to navigate the tutorial.


Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
You can help in many different ways.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.09 Seconds