On Thursday 17 January 2008 3:13:08 am Jeffrey Ratcliffe wrote: > On 17/01/2008, John Goerzen <[EMAIL PROTECTED]> wrote: > > 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. > > I made changes to the lib/Gscan2pdf.pm module. You'll have to update that > too.
Ah. I should have noticed that, sorry. New debug attached. Once again, only the back side (page 2) appeared in gscan2pdf. -- 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' } }, 'mode' => 'Lineart', 'window_maximize' => '', 'ocr engine' => 'gocr', 'y' => '279', 'keywords' => '', 'pagewidth' => '216', 'layout' => 'single', 'cwd' => '/home/jgoerzen/archive/records/2007/receipts', 'day' => '31', 't' => '0', 'OCR on scan' => '', 'image type' => 'png', 'Paper size' => 'US Letter', 'Page range' => 'current', '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 Duplex', '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:001:009', '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 31280 Waiting to reap process at /usr/bin/gscan2pdf line 3440. Reaped PID -1 scanimage --help --device-name='fujitsu:libusb:001:009' --mode='Lineart' '0','fujitsu:libusb:001:009','FUJITSU ScanSnap S510' Forked PID 31290 Waiting to reap process at /usr/bin/gscan2pdf line 4354. 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:009': 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:009 $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', 'step' => '1', 'min' => '0', 'max' => '60', 'default' => '0' }, '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', 'step' => '1', 'min' => '0', 'max' => '255', 'default' => '0' }, '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.', 'step' => '1', 'min' => '-127', 'max' => '127', 'default' => '0' }, 'pageheight' => { 'tip' => 'Must be set properly to eject pages', 'step' => '0.0211639', 'min' => '0', 'max' => '863.489', 'default' => '279.364' }, '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', 'step' => '0.0211639', 'min' => '0', 'max' => '221.121',$VAR1 = []; scanimage --device-name='fujitsu:libusb:001:009' --mode='Lineart' --source='ADF Duplex' --threshold='153' --contrast='0' -x 216 --pageheight='279' -y 279 -l 0 --pagewidth='216' --compression='None' --brightness='0' --resolution='300' -t 0 --batch --progress 'default' => '215.872' }, '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', 'step' => '1', 'min' => '0', 'max' => '7', 'default' => '0' }, 'brightness' => { 'tip' => 'Controls the brightness of the acquired image.', 'step' => '1', 'min' => '-127', 'max' => '127', 'default' => '0' }, 'y-resolution' => { 'tip' => 'Sets the vertical resolution of the scanned image.', 'step' => '1', 'min' => '50', 'max' => '600', 'default' => '600' }, 'dropoutcolor' => { 'tip' => 'One-pass scanners use only 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.', 'step' => '1', 'min' => '50', 'max' => '600', 'default' => '600' } }; $VAR1 = { 'source' => 'ADF Duplex', 'threshold' => '153', 'mode' => 'Lineart', 'contrast' => '0', 'x' => '216', 'pageheight' => '279', 'l' => '0', 'y' => '279', 'compression' => 'None', 'pagewidth' => '216', 'brightness' => '0', 'resolution' => '300', 't' => '0' }; Forked PID 31307 scanimage: rounded value of threshold from 153 to 153 scanimage: rounded value of threshold from 153 to 153 scanimage: rounded value of contrast from 0 to 0 scanimage: rounded value of contrast from 0 to 0 scanimage: rounded value of pageheight from 279 to 279.004 scanimage: rounded value of pageheight from 279 to 279.004 scanimage: rounded value of tl-x from 0 to 0 scanimage: rounded value of tl-x from 0 to 0 scanimage: rounded value of pagewidth from 216 to 215.999 scanimage: rounded value of pagewidth from 216 to 215.999 scanimage: rounded value of brightness from 0 to 0 scanimage: rounded value of resolution from 300 to 300 scanimage: rounded value of tl-y from 0 to 0 scanimage: rounded value of brightness from 0 to 0 scanimage: rounded value of resolution from 300 to 300 scanimage: rounded value of tl-y from 0 to 0 scanimage: rounded value of br-x from 216 to 215.999 scanimage: rounded value of br-y from 279 to 279.004 Scanning -1 pages, incrementing by 1, numbering from 1 Scanning page 1 scanimage: rounded value of br-x from 216 to 215.999 scanimage: rounded value of br-y from 279 to 279.004 Progress: 3.1% at /usr/bin/gscan2pdf line 3714. Progress: 6.2% at /usr/bin/gscan2pdf line 3714. Progress: 9.4% at /usr/bin/gscan2pdf line 3714. Progress: 12.5% at /usr/bin/gscan2pdf line 3714. Progress: 15.6% at /usr/bin/gscan2pdf line 3714. Progress: 18.7% at /usr/bin/gscan2pdf line 3714. Progress: 21.8% at /usr/bin/gscan2pdf line 3714. Progress: 24.9% at /usr/bin/gscan2pdf line 3714. Progress: 28.1% at /usr/bin/gscan2pdf line 3714. Progress: 31.2% at /usr/bin/gscan2pdf line 3714. Progress: 34.3% at /usr/bin/gscan2pdf line 3714. Progress: 37.4% at /usr/bin/gscan2pdf line 3714. Progress: 40.5% at /usr/bin/gscan2pdf line 3714. Progress: 43.6% at /usr/bin/gscan2pdf line 3714. Progress: 46.8% at /usr/bin/gscan2pdf line 3714. Progress: 49.9% at /usr/bin/gscan2pdf line 3714. Progress: 53.0% Progress: 56.1% Progress: 59.2% Progress: 62.3% Progress: 65.5% Progress: 68.6% Progress: 71.7% Progress: 74.8% Progress: 77.9% Progress: 81.1% Progress: 84.2% Progress: 87.3% Progress: 90.4% Progress: 93.5% Progress: 96.6% Progress: 99.8% Progress: 100.0% Progress: 100.0% Scanned page 1. (scanner status = 5) Scanning page 2 Progress: 3.1% Progress: 6.2% Progress: 9.4% Progress: 12.5% Progress: 15.6% Progress: 18.7% Progress: 21.8% Progress: 24.9% Progress: 28.1% Progress: 31.2% Progress: 34.3% Progress: 37.4% Progress: 40.5% Progress: 43.6% Progress: 46.8% Progress: 49.9% Progress: 53.0% Progress: 56.1% Progress: 59.2% Progress: 62.3% Progress: 65.5% Progress: 68.6% Progress: 71.7% Progress: 74.8% Progress: 77.9% Progress: 81.1% Progress: 84.2% Progress: 87.3% Progress: 90.4% Progress: 93.5% Progress: 96.6% Progress: 99.8% Progress: 100.0% Progress: 100.0% Scanned page 2. (scanner status = 5) Scanning page 3 Importing out2.pnm, format Portable anymap Added /tmp/NZjwueeng7/ZROCKJcFbx.pnm at page 2 with resolution 300 scanimage: sane_start: Document feeder out of documents Waiting to reap process at /usr/bin/gscan2pdf line 3779. Reaped PID 31307