[gscan2pdf-help] Failing to save as pdf
Brought to you by:
ra28145
|
From: Cédric M. <cma...@gm...> - 2013-10-10 09:04:13
|
Hello,
I just wanted to use gscan2pdf to produce a pdf file, but it fails
when I save the file as pdf. I think when I want to produce a pdf after
the OCR is done I only have to save as pdf. So I don't know what is wrong. In
gscan2pdf I get:
Error creating PDF image object: Unknown format file
I'm using the last version of gscan2pdf. Do you have an idea what I'm
doing wrong or what can be the problem ?
Thanks
Cédric
The log file:
INFO - Starting gscan2pdf 1.1.3
INFO - Log level DEBUG
INFO - Using en_US.UTF-8 locale
INFO - Startup LC_NUMERIC C
INFO - Reading config from /home/user/.gscan2pdf
INFO - Perl version v5.18.1
INFO - Glib-Perl version 1.301
INFO - Built for Glib 2.36.3
INFO - Running with Glib 2.36.4
INFO - Gtk2-Perl version 1.247
INFO - Built for GTK 2.24.18
INFO - Running with GTK 2.24.20
INFO - Using GtkImageView version 1.6.4
INFO - Using Gtk2::ImageView version 0.05
INFO - Using PDF::API2 version 2.020
INFO - Using Sane version 1.0.24
INFO - Using libsane-perl version 0.05
DEBUG - $VAR1 = {
'SANE version' => '1.0.24',
'title' => 'Zoom Ausgabe',
'OCR output' => 'replace',
'pdf compression' => 'auto',
'pages to scan' => '1',
'window_maximize' => '1',
'date offset' => '0',
'unsharp threshold' => '0.05',
'unpaper on scan' => '1',
'cache options' => '1',
'downsample dpi' => '150',
'default filename' => '%a %y-%m-%d',
'Dark threshold' => '0.12',
'thumb panel' => '100',
'frontend' => 'libsane-perl',
'unsharp radius' => '0',
'device' => 'hpaio:/net/Officejet_Pro_8600?ip=192.168.1.35',
'subject' => '',
'Page range' => 'selected',
'window_height' => '747',
'threshold tool' => '80',
'selection' => [
'1354',
'1999',
'77',
'1'
],
'restore window' => '1',
'keywords' => '',
'author' => '',
'user_defined_tools' => 'gimp %i',
'window_x' => '-2',
'pdf font' => '/usr/share/fonts/TTF/DejaVuSans-Bold.ttf',
'unpaper options' => {
'layout' => 'single',
'no-blurfilter' => '',
'black-threshold' => '0.33',
'white-threshold' => '0.9',
'no-noisefilter' => '',
'no-border-align' => '',
'no-deskew' => '',
'deskew-scan-direction' => 'left',
'output-pages' => '1',
'no-grayfilter' => '',
'border-margin' => '0,0',
'no-mask-scan' => '',
'no-blackfilter' => '',
'no-border-scan' => ''
},
'ocr language' => 'fra',
'window_width' => '1366',
'unsharp amount' => '1',
'quality' => '75',
'scan prefix' => '',
'profile' => {},
'Blank threshold' => '0.005',
'window_y' => '19',
'downsample' => '',
'OCR on scan' => '1',
'image type' => 'pdf',
'version' => '1.1.3',
'startup warning' => '1',
'ocr engine' => 'tesseract',
'cwd' => '/home/user/scan2',
'unsharp sigma' => '1',
'layout' => 'single',
'libsane-perl version' => '0.05',
'rotate reverse' => '0',
'rotate facing' => '0',
'Paper' => {
'US Letter' => {
'l' => '0',
't' => '0',
'y' => '279',
'x' => '216'
},
'A4' => {
't' => '0',
'y' => '297',
'x' => '210',
'l' => '0'
},
'US Legal' => {
'y' => '356',
't' => '0',
'x' => '216',
'l' => '0'
}
}
};
INFO - Found tesseract version 3.02.02.
INFO - Found Image::Magick
INFO - Found ImageMagick
INFO - Found xdg-email
INFO - Found tesseract
INFO - Found cjb2 (djvu)
INFO - Found libtiff
INFO - Found unpaper v5.1
INFO - Checking /tmp for crashed sessions
INFO - Using /tmp/gscan2pdf-R7pM for temporary files
DEBUG - $VAR1 = [];
INFO - Getting info for /home/user/scan2/allianz0001.jpg
INFO - JPEG image data, JFIF standard 1.01
INFO - Format Joint Photographic Experts Group JFIF format
INFO - New page filename /home/user/scan2/allianz0001.jpg, format Joint Photographic Experts Group JFIF format
INFO - Added /tmp/gscan2pdf-R7pM/NoThwtdkA6.jpg at page 1 with resolution 762
INFO - Found tesseract language deu
INFO - Found tesseract language eng
INFO - Found tesseract language fra
INFO - Found tesseract version 3.02.02.
INFO - echo tessedit_create_hocr 1 > hocr.config;tesseract /tmp/gscan2pdf-R7pM/NoThwtdkA6.jpg /tmp/lC4fRPV9cu -l deu +hocr.config;rm hocr.config
DEBUG - Warnings from Tesseract: Tesseract Open Source OCR Engine v3.02.02 with Leptonica
INFO - Replaced /tmp/gscan2pdf-R7pM/NoThwtdkA6.jpg at page 1 with /tmp/gscan2pdf-R7pM/RasmjvIlvP.jpg, resolution 762
DEBUG - PDF save filename dialog returned ok
DEBUG - Started saving /home/user/scan2/zoom.pdf
INFO - Using /usr/share/fonts/TTF/DejaVuSans-Bold.ttf for non-ASCII text
INFO - Depth of /tmp/gscan2pdf-R7pM/RasmjvIlvP.jpg is 1
INFO - Selecting lzw compression
INFO - Converting /tmp/gscan2pdf-R7pM/RasmjvIlvP.jpg to /tmp/gscan2pdf-R7pM/eq3I17frKW.tif
INFO - Writing temporary image /tmp/gscan2pdf-R7pM/eq3I17frKW.tif with depth 1
WARN - Exception 450: BitsPerSample 1 not allowed for JPEG. `JPEGSetupEncode' @ error/tiff.c/TIFFErrors/563
INFO - tiffcp -c lzw /tmp/gscan2pdf-R7pM/eq3I17frKW.tif /tmp/gscan2pdf-R7pM/Uj1mJkmuoc.tif
INFO - TIFFFillStrip: Invalid strip byte count 0, strip 0.
/tmp/gscan2pdf-R7pM/eq3I17frKW.tif: Error, can't read strip 0.
INFO - Defining page at 241.133858267717pt x 331.464566929134pt
INFO - Embedding OCR output behind image
DEBUG - non-ascii text is 'ü' in 'Bürogebäudes'
DEBUG - non-ascii text is 'ö' in 'Fremdwörter-'
DEBUG - non-ascii text is 'ä' in 'erfährt:'
DEBUG - non-ascii text is 'ü' in 'für'
DEBUG - non-ascii text is 'ä' in 'KolIektivleben-Geschäft.'
DEBUG - non-ascii text is 'ä' in 'Prämien,'
DEBUG - non-ascii text is 'Ü' in 'Überschussmodelle.'
DEBUG - non-ascii text is 'ü' in 'Dafür'
DEBUG - non-ascii text is 'ö' in 'benötigt'
DEBUG - non-ascii text is '«' in '«Produktivsetzung'
DEBUG - non-ascii text is '»' in 'LDS».'
DEBUG - non-ascii text is 'ü' in 'für'
DEBUG - non-ascii text is 'ü' in 'für'
DEBUG - non-ascii text is 'ö' in 'ambitiösen'
DEBUG - non-ascii text is 'ä' in 'KolIektivleben-Geschäft'
DEBUG - non-ascii text is 'ü' in 'zusammengeführt'
DEBUG - non-ascii text is 'ï¬' in 'beruï¬ichen'
DEBUG - non-ascii text is 'ü' in 'erfüllen'
DEBUG - non-ascii text is 'ö' in 'können.'
DEBUG - non-ascii text is 'ü' in 'müssen'
DEBUG - non-ascii text is 'ä' in 'zuständig'
DEBUG - non-ascii text is 'ü' in 'für'
DEBUG - non-ascii text is 'ä' in 'drängt,'
DEBUG - non-ascii text is 'â' in 'Landâ'
DEBUG - non-ascii text is 'ä' in 'erklärt'
DEBUG - non-ascii text is 'ï¬' in 'Landeanï¬ugpiste.'
DEBUG - non-ascii text is 'ä' in 'Kollektivgeschäft'
DEBUG - non-ascii text is 'ö' in 'König'
DEBUG - non-ascii text is 'â' in 'Meierâ'
DEBUG - non-ascii text is 'â' in 'trealâ'
DEBUG - non-ascii text is 'ä' in 'wächst'
DEBUG - non-ascii text is '«' in '«Bachelor'
DEBUG - non-ascii text is '»' in 'Science»'
DEBUG - non-ascii text is 'ä' in 'tät'
DEBUG - non-ascii text is 'ü' in 'für'
DEBUG - non-ascii text is 'ü' in 'zurück,'
WARN - Unknown format file
INFO - Wrote config to /home/user/.gscan2pdf
DEBUG - Quitting
|