<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 26.11.2012 18:04, Jeffrey Ratcliffe
wrote:<br>
</div>
<blockquote
cite="mid:CACg2wbwwcz2RTWjKYMXijdbqewiAi+rqVBm+3+L1caAFBx-Yug@..."
type="cite">
<pre wrap="">gscan2pdf --log=log</pre>
</blockquote>
<font face="Helvetica, Arial, sans-serif">Hi Jeffrey,<br>
I encounter a similar problem after updating to 1.10.<br>
I've got to scanners. First is a brother second a fujitsu, </font><font
face="Helvetica, Arial, sans-serif"><font face="Helvetica, Arial,
sans-serif"> but can't switch from one to the other.</font>
After selecting the fujitsu gscan2pdf still contacts the brother
scanner.<br>
Even selecting the brother scanner doesn't bring up a document.
Although I can find the out1.pnm in the tmp-directory.<br>
Here is the log:<br>
rhofmann@...:~$ gscan2pdf --log=log<br>
INFO - Starting gscan2pdf 1.1.0<br>
INFO - Log level DEBUG<br>
INFO - Using de_DE.ISO-8859-15@... locale<br>
INFO - Startup LC_NUMERIC C<br>
INFO - Reading config from /home/rhofmann/.gscan2pdf<br>
INFO - Perl version v5.10.1<br>
INFO - Glib-Perl version 1.222<br>
INFO - Built for Glib 2.22.2<br>
INFO - Running with Glib 2.24.1<br>
INFO - Gtk2-Perl version 1.221<br>
INFO - Built for GTK 2.20.0<br>
INFO - Running with GTK 2.20.1<br>
INFO - Using GtkImageView version 1.6.1<br>
INFO - Using Gtk2::ImageView version 0.05<br>
INFO - Using PDF::API2 version 2.015<br>
INFO - Using Sane version 1.0.20<br>
INFO - Using libsane-perl version 0.05<br>
DEBUG - $VAR1 = {<br>
'ocr panel' => '836',<br>
'frontend' => 'libsane-perl',<br>
'mode' => 'Black & White',<br>
'Paper' => {<br>
'A4' => {<br>
'l' => '0',<br>
'y' => '297',<br>
'x' => '210',<br>
't' => '0'<br>
}<br>
},<br>
'output-pages' => '1',<br>
'ocr engine' => 'ocropus',<br>
'keywords' => '',<br>
'y' => '297',<br>
'layout' => 'single',<br>
'cwd' => '/home/rhofmann/Dokumente',<br>
'image type' => 'pdf',<br>
'Paper size' => 'A4',<br>
'subject' => '',<br>
'user_defined_tools' => 'gimp %i',<br>
'default filename' => '%t',<br>
'startup warning' => '1',<br>
'title' => 'Kontoauszug 15.11.2012',<br>
'page-height' => '297',<br>
'unpaper options' => {<br>
'no-blackfilter' => '1',<br>
'border-align' =>
'left,right,top,bottom',<br>
'output-pages' => '1',<br>
'no-deskew' => '',<br>
'no-border-scan' => '',<br>
'no-noisefilter' => '1',<br>
'no-blurfilter' => '1',<br>
'white-threshold' => '0.85',<br>
'no-mask-scan' => '1',<br>
'layout' => 'single',<br>
'no-grayfilter' => '1',<br>
'no-border-align' => '',<br>
'black-threshold' => '0.6',<br>
'deskew-scan-direction' =>
'left,top',<br>
'border-margin' => '20,20'<br>
},<br>
'rotate facing' => '0',<br>
'source' => 'ADF Front',<br>
'threshold' => '0',<br>
'cache options' => '1',<br>
'author' => '',<br>
'view files toggle' => '',<br>
'selection' => [<br>
'0',<br>
'0',<br>
'3270',<br>
'1640'<br>
],<br>
'window_x' => '-4',<br>
'quality' => '75',<br>
'window_y' => '-3',<br>
'date offset' => '-10',<br>
'tiff compression' => 'lzw',<br>
'version' => '1.1.0',<br>
'device' => 'brother2:bus3;dev2',<br>
'scan prefix' => '',<br>
'black-threshold' => '0.52',<br>
'profile' => {},<br>
'unsharp radius' => '0',<br>
'window_maximize' => '1',<br>
'white-threshold' => '0.15',<br>
'pid' => '20282',<br>
'unsharp amount' => '1',<br>
'OCR output' => 'replace',<br>
't' => '0',<br>
'OCR on scan' => '1',<br>
'ocr language' => 'ger',<br>
'Page range' => 'selected',<br>
'default' => {<br>
'brother2:bus2;dev1' => [<br>
{<br>
'br-x' =>
'210'<br>
},<br>
{<br>
'br-y' =>
'297'<br>
},<br>
{<br>
'source' =>
'FlatBed'<br>
},<br>
{<br>
'resolution'
=> '300'<br>
},<br>
{<br>
'mode' =>
'Gray[Error Diffusion]'<br>
}<br>
],<br>
'brother2:bus3;dev2' => [<br>
{<br>
'br-x' =>
'210'<br>
},<br>
{<br>
'br-y' =>
'297'<br>
},<br>
{<br>
'mode' =>
'True Gray'<br>
},<br>
{<br>
'resolution'
=> '400'<br>
}<br>
],<br>
'brother2:bus3;dev1' => [<br>
{<br>
'br-x' =>
'210'<br>
},<br>
{<br>
'br-y' =>
'297'<br>
},<br>
{<br>
'resolution'
=> '300'<br>
}<br>
],<br>
'fujitsu:fi-4120C2dj:26880' => [<br>
{<br>
'resolution' => '400'<br>
},<br>
{<br>
'sleeptimer' => '10'<br>
},<br>
{<br>
'br-x'
=> '210'<br>
},<br>
{<br>
'br-y'
=> '296.993576049805'<br>
},<br>
{<br>
'page-height' => '297'<br>
},<br>
{<br>
'page-width' => '210'<br>
},<br>
{<br>
'mode'
=> 'Gray'<br>
},<br>
{<br>
'brightness' => '20'<br>
}<br>
]<br>
},<br>
'window_height' => '961',<br>
'pdf font' =>
'/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf',<br>
'rotate reverse' => '0',<br>
'cycle sane handle' => '',<br>
'brightness' => '0',<br>
'Dark threshold' => '0.12',<br>
'pages to scan' => '1',<br>
'resolution' => '400',<br>
'Blank threshold' => '0.005',<br>
'unpaper on scan' => '',<br>
'libsane-perl version' => '0.05',<br>
'x' => '210',<br>
'downsample dpi' => '200',<br>
'window_width' => '1280',<br>
'deskew-scan-direction' => 'left,right',<br>
'threshold tool' => '50',<br>
'border-margin' => '0,0',<br>
'unsharp sigma' => '1',<br>
'thumb panel' => '156',<br>
'contrast' => '0',<br>
'unsharp threshold' => '0.05',<br>
'l' => '0',<br>
'SANE version' => '1.0.20',<br>
'page-width' => '210',<br>
'downsample' => '1',<br>
'restore window' => '1',<br>
'pdf compression' => 'auto'<br>
};<br>
<br>
INFO - Using ocroscript with recognize.<br>
INFO - Found Image::Magick<br>
INFO - Found ImageMagick<br>
INFO - Found scanadf<br>
INFO - Found xdg-email<br>
INFO - Found gocr<br>
INFO - Found cuneiform<br>
INFO - Found cjb2 (djvu)<br>
INFO - Found libtiff<br>
INFO - Found unpaper vv0.3<br>
INFO - Checking /tmp for crashed sessions<br>
INFO - Using /tmp/gscan2pdf-8wKg for temporary files<br>
DEBUG - Setting dir from undef to /tmp/gscan2pdf-8wKg<br>
INFO - Sane->get_devices returned: $VAR1 = [<br>
{<br>
'name' => 'brother2:bus3;dev2',<br>
'model' => 'MFC-5460CN',<br>
'type' => 'USB scanner',<br>
'vendor' => 'Brother'<br>
},<br>
{<br>
'name' => 'fujitsu:fi-4120C2dj:26880',<br>
'model' => 'fi-4120C2dj',<br>
'type' => 'scanner',<br>
'vendor' => 'FUJITSU'<br>
}<br>
];<br>
<br>
DEBUG - Setting device_list from undef to $VAR1 = [<br>
{<br>
'name' => 'brother2:bus3;dev2',<br>
'model' => 'MFC-5460CN',<br>
'type' => 'USB scanner',<br>
'vendor' => 'Brother'<br>
},<br>
{<br>
'name' => 'fujitsu:fi-4120C2dj:26880',<br>
'model' => 'fi-4120C2dj',<br>
'type' => 'scanner',<br>
'vendor' => 'FUJITSU'<br>
}<br>
];<br>
<br>
DEBUG - Setting device from to brother2:bus3;dev2<br>
DEBUG - opening device: Success<br>
DEBUG - Sane->get_option_descriptor returned: $VAR1 = bless( {<br>
'hash' => {<br>
'tl-y' => {<br>
'cap' => '5',<br>
'max_values' => '1',<br>
'name' => 'tl-y',<br>
'val' => '0',<br>
'index' => 9,<br>
'unit' => '3',<br>
'desc' => 'Top-left y
position of scan area.',<br>
'type' => '2',<br>
'constraint' => {<br>
'min'
=> '0',<br>
'max'
=> '355.599990844727',<br>
'quant'
=> '0.0999908447265625'<br>
},<br>
'title' => 'Top-left
y',<br>
'constraint_type' =>
'1'<br>
},<br>
'source' => {<br>
'cap' => '5',<br>
'max_values' => '1',<br>
'name' => 'source',<br>
'val' => 'Automatic
Document Feeder',<br>
'index' => 4,<br>
'unit' => '0',<br>
'desc' => 'Selects
the scan source (such as a document-feeder).',<br>
'type' => '3',<br>
'constraint' => [<br>
'FlatBed',<br>
'Automatic Document Feeder'<br>
],<br>
'title' => 'Scan
source',<br>
'constraint_type' =>
'3'<br>
},<br>
'br-y' => {<br>
'cap' => '5',<br>
'max_values' => '1',<br>
'name' => 'br-y',<br>
'val' =>
'355.599990844727',<br>
'index' => 11,<br>
'unit' => '3',<br>
'desc' =>
'Bottom-right y position of scan area.',<br>
'type' => '2',<br>
'constraint' => {<br>
'min'
=> '0',<br>
'max'
=> '355.599990844727',<br>
'quant'
=> '0.0999908447265625'<br>
},<br>
'title' =>
'Bottom-right y',<br>
'constraint_type' =>
'1'<br>
},<br>
'tl-x' => {<br>
'cap' => '5',<br>
'max_values' => '1',<br>
'name' => 'tl-x',<br>
'val' => '0',<br>
'index' => 8,<br>
'unit' => '3',<br>
'desc' => 'Top-left x
position of scan area.',<br>
'type' => '2',<br>
'constraint' => {<br>
'min'
=> '0',<br>
'max'
=> '215.899993896484',<br>
'quant'
=> '0.0999908447265625'<br>
},<br>
'title' => 'Top-left
x',<br>
'constraint_type' =>
'1'<br>
},<br>
'mode' => {<br>
'cap' => '5',<br>
'max_values' => '1',<br>
'name' => 'mode',<br>
'val' => '24bit
Color',<br>
'index' => 2,<br>
'unit' => '0',<br>
'desc' => 'Select the
scan mode',<br>
'type' => '3',<br>
'constraint' => [<br>
'Black
& White',<br>
'Gray[Error Diffusion]',<br>
'True
Gray',<br>
'24bit
Color'<br>
],<br>
'title' => 'Scan
mode',<br>
'constraint_type' =>
'3'<br>
},<br>
'contrast' => {<br>
'cap' => '37',<br>
'max_values' =>
'1',<br>
'name' =>
'contrast',<br>
'index' => 6,<br>
'unit' => '5',<br>
'desc' =>
'Controls the contrast of the acquired image.',<br>
'title' =>
'Contrast',<br>
'type' => '2',<br>
'constraint' => {<br>
'min' => '-50',<br>
'max' => '50',<br>
'quant' => '1'<br>
},<br>
'constraint_type'
=> '1'<br>
},<br>
'brightness' => {<br>
'cap' => '37',<br>
'max_values' =>
'1',<br>
'name' =>
'brightness',<br>
'index' => 5,<br>
'unit' => '5',<br>
'desc' =>
'Controls the brightness of the acquired image.',<br>
'title' =>
'Brightness',<br>
'type' => '2',<br>
'constraint' =>
{<br>
'min' => '-50',<br>
'max' => '50',<br>
'quant' => '1'<br>
},<br>
'constraint_type'
=> '1'<br>
},<br>
'br-x' => {<br>
'cap' => '5',<br>
'max_values' => '1',<br>
'name' => 'br-x',<br>
'val' =>
'215.899993896484',<br>
'index' => 10,<br>
'unit' => '3',<br>
'desc' =>
'Bottom-right x position of scan area.',<br>
'type' => '2',<br>
'constraint' => {<br>
'min'
=> '0',<br>
'max'
=> '215.899993896484',<br>
'quant'
=> '0.0999908447265625'<br>
},<br>
'title' =>
'Bottom-right x',<br>
'constraint_type' =>
'1'<br>
},<br>
'resolution' => {<br>
'cap' => '5',<br>
'max_values' =>
'1',<br>
'name' =>
'resolution',<br>
'val' => '200',<br>
'index' => 3,<br>
'unit' => '4',<br>
'desc' => 'Sets
the resolution of the scanned image.',<br>
'type' => '1',<br>
'constraint' =>
[<br>
'100',<br>
'150',<br>
'200',<br>
'300',<br>
'400',<br>
'600',<br>
'1200',<br>
'2400',<br>
'4800',<br>
'9600'<br>
],<br>
'title' => 'Scan
resolution',<br>
'constraint_type'
=> '2'<br>
}<br>
},<br>
'array' => [<br>
{<br>
'index' => 0<br>
},<br>
{<br>
'cap' => '64',<br>
'max_values' => '1',<br>
'unit' => '0',<br>
'index' => 1,<br>
'desc' => '',<br>
'title' => 'Mode',<br>
'type' => '5',<br>
'constraint_type' => '0'<br>
},<br>
$VAR1->{'hash'}{'mode'},<br>
$VAR1->{'hash'}{'resolution'},<br>
$VAR1->{'hash'}{'source'},<br>
$VAR1->{'hash'}{'brightness'},<br>
$VAR1->{'hash'}{'contrast'},<br>
{<br>
'cap' => '64',<br>
'max_values' => '1',<br>
'unit' => '0',<br>
'index' => 7,<br>
'desc' => '',<br>
'title' => 'Geometry',<br>
'type' => '5',<br>
'constraint_type' => '0'<br>
},<br>
$VAR1->{'hash'}{'tl-x'},<br>
$VAR1->{'hash'}{'tl-y'},<br>
$VAR1->{'hash'}{'br-x'},<br>
$VAR1->{'hash'}{'br-y'}<br>
],<br>
'geometry' => {<br>
'y' => '355.599990844727',<br>
'l' => '0',<br>
'x' => '215.899993896484',<br>
't' => '0'<br>
}<br>
}, 'Gscan2pdf::Scanner::Options' );<br>
<br>
DEBUG - Setting available_scan_options from undef to
Gscan2pdf::Scanner::Options=HASH(0x1980030)<br>
DEBUG - Setting paper_formats from undef to $VAR1 = {<br>
'A4' => {<br>
'l' => '0',<br>
'y' => '297',<br>
'x' => '210',<br>
't' => '0'<br>
}<br>
};<br>
<br>
DEBUG - Setting paper from undef to A4<br>
INFO - sane_set_option 10 to 210 returned status Success with info
5<br>
INFO - sane_set_option 11 to 297 returned status Success with info
5<br>
INFO - gscan2pdf: scanning image of size 1648x2337 pixels at 24
bits/pixel<br>
INFO - gscan2pdf: acquiring RGB frame<br>
INFO - gscan2pdf: min/max graylevel value = 255/0<br>
INFO - gscan2pdf: read 11554128 bytes in total<br>
INFO - Scanned page /tmp/gscan2pdf-8wKg/out1.pnm. (scanner status
= 5)<br>
DEBUG - $VAR1 = [];<br>
<br>
INFO - rotate facing 0<br>
INFO - rotate reverse 0<br>
INFO - unpaper <br>
INFO - OCR 1<br>
*** unhandled exception in callback:<br>
*** Can't call method "get_active" on an undefined value at
/usr/bin/gscan2pdf line 4580.<br>
*** ignoring at /usr/share/perl5/Gscan2pdf/Scanner/Dialog.pm line
1928.<br>
<br>
<br>
<br>
</font>
</body>
</html>
|