also sprach Jeffrey Ratcliffe <[EMAIL PROTECTED]> [2008.09.29.1224 +0200]: > Please start gscan2pdf with the --debug option, try to save a PDF and > post the output from the command line.
piper:~% gscan2pdf --debug
gscan2pdf 0.9.26
Using en_GB.UTF-8 locale
Gtk2-Perl version 1.190
Built for 2.12.10
Running with 2.12.11
Using GtkImageView version 1.6.1
Using Gtk2::ImageView version 0.04
$VAR1 = {
'ocr panel' => '782',
'no-blackfilter' => '1',
'frontend' => 'scanimage',
'mode' => 'Color',
'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'
}
},
'output-pages' => '1',
'ocr engine' => 'tesseract',
'keywords' => '',
'y' => '297',
'layout' => 'single',
'cwd' => '/home/madduck/neokon',
'day' => '4',
'image type' => 'pdf',
'Paper size' => 'A4',
'subject' => '',
'startup warning' => '1',
'no-grayfilter' => '1',
'no-border-align' => '1',
'title' => '',
'source' => 'Auto',
'rotate facing' => '0',
'cache options' => '1',
'month' => '4',
'author' => '',
'compression' => 'JPEG',
'window_x' => '1280',
'window_y' => '19',
'quality' => '75',
'tiff compression' => 'zip',
'date offset' => '0',
'enable options' => '1',
'version' => '0.9.26',
'scan prefix' => '',
'device' => 'net:sane:hpaio:/net/HP_LaserJet_3052?ip=192.168.14.31',
'black-threshold' => '0.33',
'year' => '2007',
'cache' => {
'net:sane:hpaio:/net/HP_LaserJet_3052?ip=192.168.14.31'
=> {
'Grayscale' => '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',
'Color' => '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 [Color]
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'
}
},
'profile' => {},
'unsharp radius' => '0',
'window_maximize' => '',
'white-threshold' => '0.75',
'unsharp amount' => '1',
't' => '0',
'OCR on scan' => '',
'ocr language' => 'deu',
'Page range' => 'selected',
'window_height' => '1003',
'rotate reverse' => '0',
'pages to scan' => 'all',
'resolution' => '300',
'unpaper on scan' => '',
'x' => '210',
'downsample dpi' => '150',
'window_width' => '1278',
'threshold tool' => '80',
'deskew-scan-direction' => 'left,right,top,bottom',
'unsharp sigma' => '1',
'thumb panel' => '161',
'border-align' => 'left,top',
'contrast' => '50',
'unsharp threshold' => '0.05',
'SANE version' => 'scanimage (sane-backends) 1.0.19; backend version
1.0.19',
'l' => '0',
'Page range default' => 'all',
'downsample' => '',
'restore window' => '1',
'pdf compression' => 'jpg',
'batch-scan' => 'yes'
};
Found PDF::API2
Found Image::Magick
Found ImageMagick
Found scanadf
Found xdg-email
Found tesseract
Found cjb2 (djvu)
Found unpaper
Found libtiff
Using /home/madduck/.tmp/vNZhXSOMbS for temporary files
scanimage --formatted-device-list="'%i','%d','%v %m'
" 2>/dev/null
Forked PID 11914
Waiting to reap process at /usr/bin/gscan2pdf line 3946.
Reaped PID -1
'0','net:sane:hpaio:/net/HP_LaserJet_3052?ip=192.168.14.31','hp
HP_LaserJet_3052'
$VAR1 = {
'jpeg-compression-factor' => {
'tip' => 'Sets the scanner JPEG
compression factor. Larger numbers mean better compression, and smaller
numbers mean better image quality.',
'min' => '0',
'max' => '100',
'default' => '10'
},
'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'
]
},
'mode' => {
'tip' => 'Selects the scan mode (e.g., lineart,
monochrome, or color).',
'default' => 'Color',
'values' => [
'Lineart',
'Grayscale',
'Color'
]
},
'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'
]
},
'contrast' => {
'tip' => 'Controls the contrast of the acquired
image.',
'min' => '0',
'max' => '100',
'default' => '50'
},
'x' => {
'tip' => 'Width of scan-area.',
'min' => '0',
'max' => '228.6',
'default' => '228.6'
},
'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'
]
},
'l' => {
'tip' => 'Top-left x position of scan area.',
'min' => '0',
'max' => '228.6',
'default' => '0'
},
'y' => {
'tip' => 'Height of scan-area.',
'min' => '0',
'max' => '381',
'default' => '381'
},
'resolution' => {
'tip' => 'Sets the resolution of the scanned
image.',
'default' => '75',
'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' => 'no',
'values' => [
'yes',
'no'
]
},
't' => {
'tip' => 'Top-left y position of scan area.',
'min' => '0',
'max' => '381',
'default' => '0'
}
};
$VAR1 = [];
$VAR1 = {
'source' => 'Auto',
'Paper size' => 'A4',
'mode' => 'Color',
'contrast' => '50',
'x' => '210',
'l' => '0',
'compression' => 'JPEG',
'y' => '297',
'resolution' => '300',
't' => '0',
'batch-scan' => 'yes'
};
rotate facing 0
rotate reverse 0
unpaper
OCR
scanimage
--device-name='net:sane:hpaio:/net/HP_LaserJet_3052?ip=192.168.14.31'
--mode='Color' --source='Auto' --contrast='50' -x 210 -l 0 --compression='JPEG'
-y 297 --resolution='300' --batch-scan='yes' -t 0 --batch --progress
Forked PID 11930
Scanning -1 pages, incrementing by 1, numbering from 1
Scanning page 1
Scanned page 1. (scanner status = 5)
Scanning page 2
scanimage: sane_start: Document feeder out of documents
Importing out1.pnm, format Portable anymap
Added /home/madduck/.tmp/vNZhXSOMbS/ez3W54yuOh.pnm at page 1 with resolution 300
Waiting to reap process at /usr/bin/gscan2pdf line 4336.
Reaped PID 11930
Forked PID 12035
Converting /home/madduck/.tmp/vNZhXSOMbS/ez3W54yuOh.pnm to
/home/madduck/.tmp/vNZhXSOMbS/RfSaY8wIqn.jpg
piper:~% ls -l ~/test.pdf
-rw------- 1 madduck madduck 0 2008-09-29 12:48 /home/madduck/test.pdf
Looks like the PDF isn't even created...?
--
.''`. 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
windoze is the one-night-stand of operating systems;
you feel so cheap after having used it.
digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)

