Re: [gscan2pdf-help] duplex scanning
Brought to you by:
ra28145
|
From: Victor W. <vw...@wo...> - 2008-04-30 16:46:13
|
Thank you for all the replies (they have only just come through to me,
sorry for multiple postings).
I did what was suggested in setting options but still only get single
sided scanning.
For Scan Options/Source there is "Flatbed" or "Automatic Document Feeder".
Below is the output from debug. I note that
"scanimage --device-name='epkowa:libusb:006:011' --mode='Binary'
--source='Automatic Document Feeder' --threshold='128' -x 210 -l 0 -y
297 --brightness='0' --speed='yes' --resolution='300' -t 0
--wait-for-button='no' --batch --progress"
does not include the command:
"--adf_mode Duplex"
which is an available option for the Epson scanner.
If I copy the scanimage line as generated by gscan2pdf in console and
add the "--adf_mode Duplex" to it I get duplex scanning.
Victor Warner.
Output from debug:
gscan2pdf --debug
gscan2pdf 0.9.23
Using en_GB.UTF-8 locale
Gtk2-Perl version 1.161
Built for 2.12.0
Running with 2.12.9
$VAR1 = {
'ocr panel' => '561',
'frontend' => 'scanimage',
'mode' => 'Binary',
'Paper' => {
'US Legal' => {
'l' => '0',
'y' => '356',
'x' => '216',
't' => '0'
},
'US Letter' => {
'l' => '0',
'y' => '279',
'x' => '216',
't' => '0'
},
'A4' => {
'l' => '0',
'y' => '297',
'x' => '210',
't' => '0'
}
},
'unsharp radius' => '0',
'window_maximize' => '1',
'ocr engine' => 'gocr',
'keywords' => '',
'y' => '297',
'layout' => 'single',
'unsharp amount' => '1',
'cwd' => '/media/sda3/scans',
't' => '0',
'OCR on scan' => '',
'image type' => 'tif',
'Paper size' => 'A4',
'Page range' => 'all',
'subject' => '',
'window_height' => '695',
'startup warning' => '',
'rotate reverse' => '0',
'brightness' => '0',
'pages to scan' => 'all',
'resolution' => '300',
'title' => 'Marken - signed certificate',
'unpaper on scan' => '',
'wait-for-button' => 'no',
'source' => 'Automatic Document Feeder',
'rotate facing' => '0',
'threshold' => '128',
'author' => '',
'x' => '210',
'downsample dpi' => '150',
'window_width' => '1024',
'speed' => 'yes',
'threshold tool' => '80',
'window_x' => '0',
'quality' => '75',
'window_y' => '0',
'date offset' => '0',
'unsharp sigma' => '1',
'tiff compression' => 'packbits',
'thumb panel' => '128',
'enable options' => '1',
'version' => '0.9.23',
'unsharp threshold' => '0.05',
'device' => 'epkowa:libusb:006:011',
'l' => '0',
'Page range default' => 'all',
'downsample' => '',
'restore window' => '1',
'pdf compression' => 'packbits'
};
Found PDF::API2
Found Image::Magick
Found ImageMagick
Found scanadf
Found xdg-email
Found gocr
Found cjb2 (djvu)
Found libtiff
Using /tmp/PbKcEvkYbH for temporary files
scanimage --formatted-device-list="'%i','%d','%v %m'
" 2>/dev/null
Forked PID 23898
Waiting to reap process at /usr/bin/gscan2pdf line 3639.
Reaped PID -1
'0','epkowa:libusb:006:011','Epson GT-2500'
scanimage --help --device-name='epkowa:libusb:006:011' --mode='Binary'
Forked PID 23904
Waiting to reap process at /usr/bin/gscan2pdf line 4586.
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 `epkowa:libusb:006:011':
Scan Mode:
--mode Binary|Gray|Color [Binary]
Selects the scan mode (e.g., lineart,monochrome, or color).
--depth 8|16 [inactive]
Number of bits per sample, typical values are 1 for "line-art" and 8
for multibit scans.
--halftoning None|Halftone A (Hard Tone)|Halftone B (Soft
Tone)|Halftone C (Net Screen)|Dither A (4x4 Bayer)|Dither B (4x4
Spiral)|Dither C (4x4 Net Screen)|Dither D (8x4 Net Screen)|Text
Enhanced Technology|Download pattern A|Download pattern B [None]
Selects the halftone.
--dropout None|Red|Green|Blue [None]
Selects the dropout.
--brightness -4..3 [0]
Selects the brightness.
--sharpness -2..2 [0]
--gamma-correction Default|User defined (Gamma=1.0)|User defined
(Gamma=1.8)|High density printing|Low density printing|High contrast
printing [Default]
Selects the gamma correction value from a list of pre-defined
devices
or the user defined table, which can be downloaded to the scanner
--color-correction No Correction|User defined|Impact-dot
printers|Thermal printers|Ink-jet printers|CRT monitors [CRT monitors]
Sets the color correction table for the selected output device.
--resolution 50..2400dpi [300]
Sets the resolution of the scanned image.
--threshold 0..255 [128]
Select minimum-brightness to get a white point
Advanced:
--mirror[=(yes|no)] [no]
Mirror the image.
--speed[=(yes|no)] [no]
Determines the speed at which the scan proceeds.
--auto-area-segmentation[=(yes|no)] [no]
--short-resolution[=(yes|no)] [no]
Display short resolution list
--zoom 50..200 [100]
Defines the zoom factor the scanner will use
--red-gamma-table 0..255,... [inactive]
Gamma-correction table for the red band.
--green-gamma-table 0..255,... [inactive]
Gamma-correction table for the green band.
--blue-gamma-table 0..255,... [inactive]
Gamma-correction table for the blue band.
--wait-for-button[=(yes|no)] [no]
After sending the scan command, wait until the button on the scanner
is pressed to actually start the scan process.
--monitor-button[=(yes|no)] [no]
Indicates whether a button on the scanner has been pressed
(read-only
option).
Color correction coefficients:
--cct-1 -2..2 [inactive]
Controls red level
--cct-2 -2..2 [inactive]
Adds to red based on green level
--cct-3 -2..2 [inactive]
Adds to red based on blue level
--cct-4 -2..2 [inactive]
Adds to green based on red level
--cct-5 -2..2 [inactive]
Controls green level
--cct-6 -2..2 [inactive]
Adds to green based on blue level
--cct-7 -2..2 [inactive]
Adds to blue based on red level
--cct-8 -2..2 [inactive]
Adds to blue based on green level
--cct-9 -2..2 [inactive]
Control blue level
Preview:
--preview[=(yes|no)] [no]
Request a preview-quality scan.
--preview-speed[=(yes|no)] [no]
Geometry:
-l 0..215.9mm [0]
Top-left x position of scan area.
-t 0..297.18mm [0]
Top-left y position of scan area.
-x 0..215.9mm [215.9]
Width of scan-area.
-y 0..297.18mm [297.18]
Height of scan-area.
--quick-format CD|A5 portrait|A5 landscape|Letter|A4|Max [Max]
Optional equipment:
--source Flatbed|Automatic Document Feeder [Flatbed]
Selects the scan source (such as a document-feeder).
--auto-eject[=(yes|no)] [yes]
Eject document after scanning
--film-type Positive Film|Negative Film [inactive]
--focus-position Focus on glass|Focus 2.5mm above glass [inactive]
Sets the focus position to either the glass or 2.5mm above the glass
--bay 1 | 2 | 3 | 4 | 5 | 6 [inactive]
Select bay to scan
--eject []
Eject the sheet in the ADF
--adf_mode Simplex|Duplex [Simplex]
Selects the ADF mode (simplex/duplex)
Type ``scanimage --help -d DEVICE'' to get list of all options for DEVICE.
List of available devices:
epkowa:libusb:006:011
$VAR1 = {
'mode' => {
'tip' => 'Selects the scan mode (e.g.,
lineart,monochrome, or color).',
'default' => 'Binary',
'values' => [
'Binary',
'Gray',
'Color'
]
},
'cct-5' => {
'tip' => 'Controls green level',
'min' => '-2',
'max' => '2',
'default' => 'inactive'
},
'eject' => {
'tip' => 'Eject the sheet in the ADF',
'default' => ''
},
'cct-9' => {
'tip' => 'Control blue level',
'min' => '-2',
'max' => '2',
'default' => 'inactive'
},
'monitor-button' => {
'tip' => 'Indicates whether a button on
the scanner has been pressed (read-only option).',
'default' => 'no',
'values' => [
'yes',
'no'
]
},
'cct-7' => {
'tip' => 'Adds to blue based on red level',
'min' => '-2',
'max' => '2',
'default' => 'inactive'
},
'focus-position' => {
'tip' => 'Sets the focus position to
either the glass or 2.5mm above the glass',
'default' => 'inactive',
'values' => [
'Focus on glass',
'Focus 2.5mm above glass'
]
},
'cct-2' => {
'tip' => 'Adds to red based on green level',
'min' => '-2',
'max' => '2',
'default' => 'inactive'
},
'color-correction' => {
'tip' => 'Sets the color correction
table for the selected output device.',
'default' => 'CRT monitors',
'values' => [
'No Correction',
'User defined',
'Impact-dot printers',
'Thermal printers',
'Ink-jet printers',
'CRT monitors'
]
},
'adf_mode' => {
'tip' => 'Selects the ADF mode (simplex/duplex)',
'default' => 'Simplex',
'values' => [
'Simplex',
'Duplex'
]
},
'cct-1' => {
'tip' => 'Controls red level',
'min' => '-2',
'max' => '2',
'default' => 'inactive'
},
'depth' => {
'tip' => 'Number of bits per sample, typical
values are 1 for "line-art" and 8 for multibit scans.',
'default' => 'inactive',
'values' => [
'8',
'16'
]
},
'brightness' => {
'tip' => 'Selects the brightness.',
'min' => '-4',
'max' => '3',
'default' => '0'
},
'dropout' => {
'tip' => 'Selects the dropout.',
'default' => 'None',
'values' => [
'None',
'Red',
'Green',
'Blue'
]
},
'preview-speed' => {
'tip' => '',
'default' => 'no',
'values' => [
'yes',
'no'
]
},
'preview' => {
'tip' => 'Request a preview-quality scan.',
'default' => 'no',
'values' => [
'yes',
'no'
]
},
'resolution' => {
'tip' => 'Sets the resolution of the scanned
image.',
'min' => '50',
'max' => '2400',
'default' => '300'
},
'wait-for-button' => {
'tip' => 'After sending the scan
command, wait until the button on the scanner is pressed to actually
start the scan process.',
'default' => 'no',
'values' => [
'yes',
'no'
]
},
'source' => {
'tip' => 'Selects the scan source (such as a
document-feeder).',
'default' => 'Flatbed',
'values' => [
'Flatbed',
'Automatic Document Feeder'
]
},
'cct-8' => {
'tip' => 'Adds to blue based on green level',
'min' => '-2',
'max' => '2',
'default' => 'inactive'
},
'halftoning' => {
'tip' => 'Selects the halftone.',
'default' => 'None',
'values' => [
'None',
'Halftone A (Hard Tone)',
'Halftone B (Soft Tone)',
'Halftone C (Net Screen)',
'Dither A (4x4 Bayer)',
'Dither B (4x4 Spiral)',
'Dither C (4x4 Net Screen)',
'Dither D (8x4 Net Screen)',
'Text Enhanced Technology',
'Download pattern A',
'Download pattern B'
]
},
'threshold' => {
'tip' => 'Select minimum-brightness to get a
white point',
'min' => '0',
'max' => '255',
'default' => '128'
},
'short-resolution' => {
'tip' => 'Display short resolution list',
'default' => 'no',
'values' => [
'yes',
'no'
]
},
'mirror' => {
'tip' => 'Mirror the image.',
'default' => 'no',
'values' => [
'yes',
'no'
]
},
'red-gamma-table' => {
'tip' => 'Gamma-correction table for
the red band.',
'min' => '0',
'max' => '255',
'default' => 'inactive'
},
'green-gamma-table' => {
'tip' => 'Gamma-correction table for
the green band.',
'min' => '0',
'max' => '255',
'default' => 'inactive'
},
'auto-area-segmentation' => {
'tip' => '',
'default' => 'no',
'values' => [
'yes',
'no'
]
},
'cct-4' => {
'tip' => 'Adds to green based on red level',
'min' => '-2',
'max' => '2',
'default' => 'inactive'
},
'speed' => {
'tip' => 'Determines the speed at which the scan
proceeds.',
'default' => 'no',
'values' => [
'yes',
'no'
]
},
'film-type' => {
'tip' => '',
'default' => 'inactive',
'values' => [
'Positive Film',
'Negative Film'
]
},
'blue-gamma-table' => {
'tip' => 'Gamma-correction table for
the blue band.',
'min' => '0',
'max' => '255',
'default' => 'inactive'
},
'bay' => {
'tip' => 'Select bay to scan',
'default' => 'inactive',
'values' => [
' 1 ',
' 2 ',
' 3 ',
' 4 ',
' 5 ',
' 6 '
]
},
'zoom' => {
'tip' => 'Defines the zoom factor the scanner will
use',
'min' => '50',
'max' => '200',
'default' => '100'
},
'auto-eject' => {
'tip' => 'Eject document after scanning',
'default' => 'yes',
'values' => [
'yes',
'no'
]
},
'gamma-correction' => {
'tip' => 'Selects the gamma correction
value from a list of pre-defined devices or the user defined table,
which can be downloaded to the scanner',
'default' => 'Default',
'values' => [
'Default',
'User defined (Gamma=1.0)',
'User defined (Gamma=1.8)',
'High density printing',
'Low density printing',
'High contrast printing'
]
},
'quick-format' => {
'tip' => '',
'default' => 'Max',
'values' => [
'CD',
'A5 portrait',
'A5 landscape',
'Letter',
'A4',
'Max'
]
},
'sharpness' => {
'tip' => '',
'min' => '-2',
'max' => '2',
'default' => '0'
},
'cct-6' => {
'tip' => 'Adds to green based on blue level',
'min' => '-2',
'max' => '2',
'default' => 'inactive'
},
'cct-3' => {
'tip' => 'Adds to red based on blue level',
'min' => '-2',
'max' => '2',
'default' => 'inactive'
}
};
$VAR1 = [];
$VAR1 = {
'source' => 'Automatic Document Feeder',
'threshold' => '128',
'mode' => 'Binary',
'x' => '210',
'l' => '0',
'y' => '297',
'brightness' => '0',
'speed' => 'yes',
'resolution' => '300',
't' => '0',
'wait-for-button' => 'no'
};
rotate facing 0
rotate reverse 0
unpaper
OCR
scanimage --device-name='epkowa:libusb:006:011' --mode='Binary'
--source='Automatic Document Feeder' --threshold='128' -x 210 -l 0 -y
297 --brightness='0' --speed='yes' --resolution='300' -t 0
--wait-for-button='no' --batch --progress
Forked PID 23914
Scanning -1 pages, incrementing by 1, numbering from 1
Scanning page 1
Scanned page 1. (scanner status = 5)
Scanning page 2
Importing out1.pnm, format Portable anymap
Added /tmp/PbKcEvkYbH/h4Z5ZAerBI.pnm at page 1 with resolution 300
Scanned page 2. (scanner status = 5)
Scanning page 3
Importing out2.pnm, format Portable anymap
Added /tmp/PbKcEvkYbH/1WzwfPkz79.pnm at page 2 with resolution 300
Scanned page 3. (scanner status = 5)
Scanning page 4
Importing out3.pnm, format Portable anymap
Added /tmp/PbKcEvkYbH/QMxRdRipgU.pnm at page 3 with resolution 300
Scanned page 4. (scanner status = 5)
Scanning page 5
Importing out4.pnm, format Portable anymap
Added /tmp/PbKcEvkYbH/XGlQOAKv1q.pnm at page 4 with resolution 300
Scanned page 5. (scanner status = 5)
Scanning page 6
Importing out5.pnm, format Portable anymap
Added /tmp/PbKcEvkYbH/DaUem3ROnX.pnm at page 5 with resolution 300
scanimage: sane_start: Document feeder out of documents
Waiting to reap process at /usr/bin/gscan2pdf line 3981.
Reaped PID 23914
Forked PID 23946
Converting /tmp/PbKcEvkYbH/Y24OpVazve.tif to /tmp/PbKcEvkYbH/Y24OpVazve.tif
tiffcp -c packbits /tmp/PbKcEvkYbH/Y24OpVazve.tif
/tmp/PbKcEvkYbH/dS7fw4oK4O.tif 2>&1
Defining page at 591.36 x 841.68
Adding tif at 300 dpi
Converting /tmp/PbKcEvkYbH/FWBNxmRSO0.tif to /tmp/PbKcEvkYbH/FWBNxmRSO0.tif
tiffcp -c packbits /tmp/PbKcEvkYbH/FWBNxmRSO0.tif
/tmp/PbKcEvkYbH/27Z0j3bAAf.tif 2>&1
Defining page at 591.36 x 841.68
Adding tif at 300 dpi
Converting /tmp/PbKcEvkYbH/9Y2ALTG2Xd.tif to /tmp/PbKcEvkYbH/9Y2ALTG2Xd.tif
tiffcp -c packbits /tmp/PbKcEvkYbH/9Y2ALTG2Xd.tif
/tmp/PbKcEvkYbH/UvLw9w7ScU.tif 2>&1
Defining page at 591.36 x 841.68
Adding tif at 300 dpi
Converting /tmp/PbKcEvkYbH/goWmHNeQhj.tif to /tmp/PbKcEvkYbH/goWmHNeQhj.tif
tiffcp -c packbits /tmp/PbKcEvkYbH/goWmHNeQhj.tif
/tmp/PbKcEvkYbH/ZElNYx1RnL.tif 2>&1
Defining page at 591.36 x 841.68
Adding tif at 300 dpi
Converting /tmp/PbKcEvkYbH/9BIResYgDU.tif to /tmp/PbKcEvkYbH/9BIResYgDU.tif
tiffcp -c packbits /tmp/PbKcEvkYbH/9BIResYgDU.tif
/tmp/PbKcEvkYbH/yHm0DRFf9m.tif 2>&1
Defining page at 591.36 x 841.68
Adding tif at 300 dpi
Process 23946 exited.
Jeffrey Ratcliffe wrote:
> 2008/4/29 Victor Warner <vw...@wo...>:
>
>> I am using gscan2pdf (0.9.23) in Kubuntu 7.10 with an Epson GT-2500
>> Which is a duplex scanner.
>>
>> In Xsane I can perform duplex scanning. With gscan2pdf I cannot.
>>
>> Under Source Doucment I choose "Double sided" but for "Side to scan" I
>> can chose only "facing" or "reverse".
>>
>
> This is set up for scanning double-sided pages with a scanner with a
> non-duplex feeder.
>
> To make it work with a duplex scanner, choose single-sided for Source
> Document, but in the scan options tab, there is a source
> option where you can select duplex.
>
> If this doesn't help, start gscan2pdf with
>
> gscan2pdf --debug
>
> open the scan dialog, and post the output from the CLI.
>
> Regards
>
> Jeff
>
>
|