also sprach Jeffrey Ratcliffe <[EMAIL PROTECTED]> [2007.07.17.1808 +0200]:
> Please try the latest version. v0.9.14 is available on Sourceforge,
> v0.9.13 is in Ubuntu Gutsy. If the problem persists, start gscan2pdf
> with
>
> gscan2pdf --debug

With 0.9.14, I can reproduce the problem, which seems to relate to
the --batch* options passed to scanimage. See below.

piper:..1666/gscan2pdf-0.9.14> gscan2pdf --debug
gscan2pdf 0.9.14
Using en_GB.UTF-8 locale
Gtk2-Perl version 1.140
Built for 2.8.20
Running with 2.10.13
$VAR1 = {
          'ocr panel' => '749',
          'frontend' => 'scanimage',
          'mode' => 'Grayscale',
          'window_maximize' => '',
          'y' => '297',
          'keywords' => '',
          'layout' => 'single',
          'cwd' => '/home/madduck/life/insurance',
          'day' => '4',
          'OCR on scan' => '',
          't' => '0',
          'Paper size' => 'A4',
          'Page range' => 'selected',
          'subject' => '',
          'window_height' => '999',
          'startup warning' => '1',
          'pages to scan' => 'all',
          'resolution' => '200',
          'title' => '',
          'unpaper on scan' => '',
          'source' => 'Auto',
          'month' => '4',
          'x' => '210',
          'author' => '',
          'compression' => 'JPEG',
          'window_width' => '1278',
          'window_x' => '1318',
          'window_y' => '10',
          'thumb panel' => '160',
          'enable options' => '1',
          'version' => '0.9.14',
          'contrast' => '50',
          'device' => 'net:sane:hpaio:/net/HP_LaserJet_3052?ip=192.168.14.31',
          'l' => '0',
          'batch-scan' => 'yes',
          'year' => '2007'
        };
Found PDF::API2
Found Image::Magick
Found ImageMagick
Found scanadf
Found xdg-email
Found gocr
Found tesseract
Found cjb2 (djvu)
Found unpaper
Forked PID 13330
Waiting to reap process at /usr/bin/gscan2pdf line 2243.
Reaped PID -1
scanimage --help 
--device-name='net:sane:hpaio:/net/HP_LaserJet_3052?ip=192.168.14.31' 
--mode=Grayscale
Forked PID 13332
Waiting to reap process at /usr/bin/gscan2pdf line 3185.
Reaped PID -1
Usage: scanimage [OPTION]...

Start image acquisition on a scanner device and write PNM image data to
standard output.

Parameters are separated by a blank from single-character options (e.g.
-d epson) and by a "=" from multi-character options (e.g. --device-name=epson).
-d, --device-name=DEVICE   use a given scanner device (e.g. hp:/dev/scanner)
    --format=pnm|tiff      file format of output file
-i, --icc-profile=PROFILE  include this ICC profile into TIFF file
-L, --list-devices         show available scanner devices
-f, --formatted-device-list=FORMAT similar to -L, but the FORMAT of the output
                           can be specified: %d (device name), %v (vendor),
                           %m (model), %t (type), and %i (index number)
-b, --batch[=FORMAT]       working in batch mode, FORMAT is `out%d.pnm' or
                           `out%d.tif' by default depending on --format
    --batch-start=#        page number to start naming files with
    --batch-count=#        how many pages to scan in batch mode
    --batch-increment=#    increase number in filename by an amount of #
    --batch-double         increment page number by two for 2sided originals
                           being scanned in a single sided scanner
    --batch-prompt         ask for pressing a key before scanning a page
    --accept-md5-only      only accept authorization requests using md5
-p, --progress             print progress messages
-n, --dont-scan            only set options, don't actually scan
-T, --test                 test backend thoroughly
-h, --help                 display this help message and exit
-v, --verbose              give even more status messages
-B, --buffer-size          change default input buffersize
-V, --version              print version information

Options specific to device 
`net:sane:hpaio:/net/HP_LaserJet_3052?ip=192.168.14.31':
  Scan mode:
    --mode Lineart|Grayscale|Color [Grayscale]
        Selects the scan mode (e.g., lineart, monochrome, or color).
    --resolution 75|100|150|200|300|600|1200dpi [75]
        Sets the resolution of the scanned image.
  Advanced:
    --contrast 0..100 [50]
        Controls the contrast of the acquired image.
    --compression None|JPEG [JPEG]
        Selects the scanner compression method for faster scans, possibly at
        the expense of image quality.
    --jpeg-compression-factor 0..100 [10]
        Sets the scanner JPEG compression factor.  Larger numbers mean better
        compression, and smaller numbers mean better image quality.
    --batch-scan[=(yes|no)] [no]
        Guarantees that a "no documents" condition will be returned after the
        last scanned page, to prevent endless flatbed scans after a batch scan.
         For some models, option changes in the middle of a batch scan don't
        take effect until after the last page.
    --source Auto|ADF [Auto]
        Selects the desired scan source for models with both flatbed and
        automatic document feeder (ADF) capabilities.  The "Auto" setting means
        that the ADF will be used if it's loaded, and the flatbed (if present)
        will be used otherwise.
    --duplex[=(yes|no)] [inactive]
        Enables scanning on both sides of the page for models with
        duplex-capable document feeders.  For pages printed in "book"-style
        duplex mode, one side will be scanned upside-down.  This feature is
        experimental.
  Geometry:
    --length-measurement Unknown|Unlimited|Approximate|Padded [Padded]
        Selects how the scanned image length is measured and reported, which
        is impossible to know in advance for scrollfed scans.
    -l 0..228.6mm [0]
        Top-left x position of scan area.
    -t 0..381mm [0]
        Top-left y position of scan area.
    -x 0..228.6mm [228.6]
        Width of scan-area.
    -y 0..381mm [381]
        Height of scan-area.

Type ``scanimage --help -d DEVICE'' to get list of all options for DEVICE.

List of available devices:
    net:sane:hpaio:/net/HP_LaserJet_3052?ip=192.168.14.31
$VAR1 = {
          'source' => {
                        'tip' => 'Selects the desired scan source for models 
with both flatbed and automatic document feeder (ADF) capabilities.  The "Auto" 
setting means that the ADF will be used if it\'s loaded, and the flatbed (if 
present) will be used otherwise.',
                        'default' => 'Auto',
                        'values' => 'Auto|ADF'
                      },
          'jpeg-compression-factor' => {
                                         'tip' => 'Sets the scanner JPEG 
compression factor.  Larger numbers mean better compression, and smaller 
numbers mean better image quality.',
                                         'default' => '10',
                                         'values' => '0..100'
                                       },
          'length-measurement' => {
                                    'tip' => 'Selects how the scanned image 
length is measured and reported, which is impossible to know in advance for 
scrollfed scans.',
                                    'default' => 'Padded',
                                    'values' => 
'Unknown|Unlimited|Approximate|Padded'
                                  },
          'mode' => {
                      'tip' => 'Selects the scan mode (e.g., lineart, 
monochrome, or color).',
                      'default' => 'Grayscale',
                      'values' => 'Lineart|Grayscale|Color'
                    },
          'contrast' => {
                          'tip' => 'Controls the contrast of the acquired 
image.',
                          'default' => '50',
                          'values' => '0..100'
                        },
          'duplex' => {
                        'tip' => 'Enables scanning on both sides of the page 
for models with duplex-capable document feeders.  For pages printed in 
"book"-style duplex mode, one side will be scanned upside-down.  This feature 
is experimental.',
                        'default' => 'inactive',
                        'values' => 'yes|no'
                      },
          'compression' => {
                             'tip' => 'Selects the scanner compression method 
for faster scans, possibly at the expense of image quality.',
                             'default' => 'JPEG',
                             'values' => 'None|JPEG'
                           },
          'resolution' => {
                            'tip' => 'Sets the resolution of the scanned 
image.',
                            'default' => '200',
                            'values' => '75|100|150|200|300|600|1200dpi'
                          },
          'batch-scan' => {
                            'tip' => 'Guarantees that a "no documents" 
condition will be returned after the last scanned page, to prevent endless 
flatbed scans after a batch scan. For some models, option changes in the middle 
of a batch scan don\'t take effect until after the last page.',
                            'default' => 'yes',
                            'values' => 'yes|no'
                          }
        };
$VAR1 = {
          'source' => 'Auto',
          'mode' => 'Grayscale',
          'contrast' => '50',
          'x' => '210',
          'y' => '297',
          'l' => '0',
          'compression' => 'JPEG',
          'resolution' => '200',
          'batch-scan' => 'yes',
          't' => '0'
        };
scanimage --device-name='net:sane:hpaio:/net/HP_LaserJet_3052?ip=192.168.14.31' 
--mode='Grayscale' --source='Auto' --contrast='50' -x 210 -y 297 -l 0 
--compression='JPEG' --resolution='200' --batch-scan='yes' -t 0 --batch 
Forked PID 13334
Waiting to reap process at /usr/bin/gscan2pdf line 2751.
Reaped PID 13334





Now if I run that command line, I get to the source of the problem:

piper:~> scanimage 
--device-name='net:sane:hpaio:/net/HP_LaserJet_3052?ip=192.168.14.31' 
--mode='Grayscale' --contrast='50' -x 210 -y 297 -l 0 --compression='JPEG' 
--resolution='200' --batch-scan='yes' -t 0 --batch --source=Auto >| 
/tmp/scan.pnm 
Scanning -1 pages, incrementing by 1, numbering from 1
Scanning page 1
scanimage: sane_start: Document feeder out of documents


To fix it, I have to remove the two --batch* options. So in fact,
this may actually be a bug in scanimage/sane-utils, but that package
has not changed since May, and the problem started to appear in
June.

-- 
 .''`.   martin f. krafft <[EMAIL PROTECTED]>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems

Attachment: signature.asc
Description: Digital signature (GPG/PGP)

Reply via email to