On Tuesday 15 January 2008 3:05:48 pm Jeffrey Ratcliffe wrote:
> On 14/01/2008, John Goerzen <[EMAIL PROTECTED]> wrote:
> > Here's an attachment, where it was set to scan in duplex mode but only
> > gave me page 2.
>
> Very bizarre. It is still not clear what is going on, so I have added
> even more debugging info in changeset 184de2fcbd7f.
>
> If you weren't before, you'll have to redirect the output:
>
> gscan2pdf --debug &> filename


Hrm.  For some reason, the "scan options" tab is now completely blank, so I 
have no way to set the duplex mode.  Debug log attached.

My previous current rev was ba10a1f7a21d, which still does the right thing.

-- John
gscan2pdf 0.9.20
Using en_US locale
Gtk2-Perl version 1.161
Built for 2.12.0
Running with 2.12.3
$VAR1 = {
          'ocr panel' => '886',
          'frontend' => 'scanimage',
          'Paper' => {
                       'US Legal' => {
                                       'l' => '0',
                                       'y' => '356',
                                       'x' => '216',
                                       't' => '0'
                                     },
                       'Receipts' => {
                                       'l' => '57',
                                       'y' => '279',
                                       'x' => '101',
                                       't' => '0'
                                     },
                       'US Letter' => {
                                        'l' => '0',
                                        'y' => '279',
                                        'x' => '216',
                                        't' => '0'
                                      },
                       'Misc' => {
                                   'l' => '0',
                                   'y' => '600',
                                   'x' => '216',
                                   't' => '0'
                                 },
                       'A4' => {
                                 'l' => '0',
                                 'y' => '297',
                                 'x' => '210',
                                 't' => '0'
                               }
                     },
          'window_maximize' => '',
          'ocr engine' => 'gocr',
          'y' => '279',
          'keywords' => '',
          'pagewidth' => '216',
          'layout' => 'single',
          'cwd' => '/home/jgoerzen/archive/records/2008/receipts-other',
          'day' => '31',
          't' => '0',
          'OCR on scan' => '',
          'image type' => 'png',
          'Paper size' => 'US Letter',
          'Page range' => 'all',
          'subject' => '',
          'window_height' => '1050',
          'startup warning' => '1',
          'brightness' => '0',
          'pages to scan' => 'all',
          'resolution' => '300',
          'title' => '',
          'unpaper on scan' => '',
          'wait-for-button' => 'no',
          'source' => 'ADF Front',
          'threshold' => '153',
          'month' => '1',
          'x' => '216',
          'author' => '',
          'pageheight' => '279',
          'downsample dpi' => '150',
          'compression' => 'None',
          'window_width' => '1067',
          'speed' => 'no',
          'threshold tool' => '50',
          'window_x' => '375',
          'window_y' => '111',
          'quality' => '90',
          'date offset' => '0',
          'tiff compression' => 'lzw',
          'thumb panel' => '180',
          'enable options' => '1',
          'version' => '0.9.20',
          'contrast' => '0',
          'device' => 'fujitsu:libusb:007:004',
          'l' => '0',
          'downsample' => '',
          'restore window' => '1',
          'pdf compression' => 'png',
          'year' => '2007'
        };
Found PDF::API2
Found Image::Magick
Found ImageMagick
Found scanadf
Found xdg-email
Found gocr
Found tesseract
Found cjb2 (djvu)
Found unpaper
Found libtiff
scanimage --formatted-device-list="'%i','%d','%v %m'
" 2>/dev/null
Forked PID 30147
Waiting to reap process at ./bin/gscan2pdf line 3437.
Reaped PID -1
scanimage --help --device-name='fujitsu:libusb:001:006'
'0','fujitsu:libusb:001:006','FUJITSU ScanSnap S510'
Forked PID 30157
Waiting to reap process at ./bin/gscan2pdf line 4351.
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 `fujitsu:libusb:001:006':
  Scan Mode:
    --source ADF Front|ADF Back|ADF Duplex [ADF Front]
        Selects the scan source (such as a document-feeder).
    --mode Lineart|Halftone|Gray|Color [Lineart]
        Selects the scan mode (e.g., lineart, monochrome, or color).
    --resolution 50..600dpi (in steps of 1) [600]
        Sets the horizontal resolution of the scanned image.
    --y-resolution 50..600dpi (in steps of 1) [600]
        Sets the vertical resolution of the scanned image.
  Geometry:
    -l 0..215.872mm (in steps of 0.0211639) [0]
        Top-left x position of scan area.
    -t 0..279.364mm (in steps of 0.0211639) [0]
        Top-left y position of scan area.
    -x 0..215.872mm (in steps of 0.0211639) [215.872]
        Width of scan-area.
    -y 0..279.364mm (in steps of 0.0211639) [279.364]
        Height of scan-area.
    --pagewidth 0..221.121mm (in steps of 0.0211639) [215.872]
        Must be set properly to align scanning window
    --pageheight 0..863.489mm (in steps of 0.0211639) [279.364]
        Must be set properly to eject pages
  Enhancement:
    --brightness -127..127 (in steps of 1) [0]
        Controls the brightness of the acquired image.
    --contrast -127..127 (in steps of 1) [0]
        Controls the contrast of the acquired image.
    --threshold 0..255 (in steps of 1) [0]
        Select minimum-brightness to get a white point
    --rif[=(yes|no)] [no]
        Reverse image format
  Advanced:
    --compression None|JPEG [None]
        Enable compressed data. May crash your front-end program
    --compression-arg 0..7 (in steps of 1) [0]
        Level of JPEG compression. 1 is small file, 7 is large file. 0
        (default) is same as 4
    --dfdetect Default|None|Thickness|Length|Both [Default]
        Enable double feed sensors
    --dfdiff Default|10mm|15mm|20mm [Default]
        Difference in page length to trigger double feed sensor
    --dropoutcolor Default|Red|Green|Blue [Default]
        One-pass scanners use only one color during gray or binary scanning,
        useful for colored paper or ink
    --overscan Default|Off|On [Default]
        Collect a few mm of background on top side of scan, before paper
        enters ADF, and increase maximum scan area beyond paper size, to allow
        collection on remaining sides. May conflict with bgcolor option
    --sleeptimer 0..60 (in steps of 1) [0]
        Time in minutes until the internal power supply switches to sleep mode
  Sensors and Buttons:

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

List of available devices:
    fujitsu:libusb:001:006
$VAR1 = {
          'source' => {
                        'tip' => 'Selects the scan source (such as a 
document-feeder).',
                        'default' => 'ADF Front',
                        'values' => 'ADF Front|ADF Back|ADF Duplex'
                      },
          'rif' => {
                     'tip' => 'Reverse image format',
                     'default' => 'no',
                     'values' => 'yes|no'
                   },
          'sleeptimer' => {
                            'tip' => 'Time in minutes until the internal power 
supply switches to sleep mode',
                            'default' => '0',
                            'values' => '0..60 (in steps of 1)'
                          },
          'overscan' => {
                          'tip' => 'Collect a few mm of background on top side 
of scan, before paper enters ADF, and increase maximum scan area beyond paper 
size, to allow collection on remaining sides. May conflict with bgcolor option',
                          'default' => 'Default',
                          'values' => 'Default|Off|On'
                        },
          'threshold' => {
                           'tip' => 'Select minimum-brightness to get a white 
point',
                           'default' => '0',
                           'values' => '0..255 (in steps of 1)'
                         },
          'mode' => {
                      'tip' => 'Selects the scan mode (e.g., lineart, 
monochrome, or color).',
                      'default' => 'Lineart',
                      'values' => 'Lineart|Halftone|Gray|Color'
                    },
          'dfdiff' => {
                        'tip' => 'Difference in page length to trigger double 
feed sensor',
                        'default' => 'Default',
                        'values' => 'Default|10mm|15mm|20mm'
                      },
          'contrast' => {
                          'tip' => 'Controls the contrast of the acquired 
image.',
                          'default' => '0',
                          'values' => '-127..127 (in steps of 1)'
                        },
          'pageheight' => {
                            'tip' => 'Must be set properly to eject pages',
                            'default' => '279.364',
                            'values' => '0..863.489mm (in steps of 0.0211639)'
                          },
          'compression' => {
                             'tip' => 'Enable compressed data. May crash your 
front-end program',
                             'default' => 'None',
                             'values' => 'None|JPEG'
                           },
          'pagewidth' => {
                           'tip' => 'Must be set properly to align scanning 
window',
                           'default' => '215.872',
                           'values' => '0..221.121mm (in steps of 0.0211639)'
                         },
          'dfdetect' => {
                          'tip' => 'Enable double feed sensors',
                          'default' => 'Default',
                          'values' => 'Default|None|Thickness|Length|Both'
                        },
          'compression-arg' => {
                                 'tip' => 'Level of JPEG compression. 1 is 
small file, 7 is large file. 0 (default) is same as 4',
                                 'default' => '0',
                                 'values' => '0..7 (in steps of 1)'
                               },
          'brightness' => {
                            'tip' => 'Controls the brightness of the acquired 
image.',
                            'default' => '0',
                            'values' => '-127..127 (in steps of 1)'
                          },
          'y-resolution' => {
                              'tip' => 'Sets the vertical resolution of the 
scanned image.',
                              'default' => '600',
                              'values' => '50..600dpi (in steps of 1)'
                            },
          'dropoutcolor' => {
                              'tip' => 'One-pass scanners use onl*** unhandled 
exception in callback:
***   Can't use string ("ADF Front|ADF Back|ADF Duplex") as an ARRAY ref while 
"strict refs" in use at ./bin/gscan2pdf line 4871.
***  ignoring at ./bin/gscan2pdf line 1109.
y one color during gray or binary scanning, useful for colored paper or ink',
                              'default' => 'Default',
                              'values' => 'Default|Red|Green|Blue'
                            },
          'resolution' => {
                            'tip' => 'Sets the horizontal resolution of the 
scanned image.',
                            'default' => '600',
                            'values' => '50..600dpi (in steps of 1)'
                          }
        };

Reply via email to