Package: libtiff-tools Version: 3.8.2-7 Severity: important Converting TIFF files to PDF does not work when TIFF is compressed using JPEG. A tiff file and its pdf counterpart are available at http://eppesuigoccas.homedns.org/~giuseppe/libtiff-tools.tiff2pdf.bug.tar.bz2
I checked the tiff file: [EMAIL PROTECTED]:~/Desktop$ tiffinfo -D scontrini-maggio-infor-bm.tiff TIFF Directory at offset 0x8 (8) Image Width: 1248 Image Length: 1753 Resolution: 150, 150 pixels/inch Bits/Sample: 8 Compression Scheme: JPEG Photometric Interpretation: min-is-black YCbCr Subsampling: 2, 2 Samples/Pixel: 1 Rows/Strip: 8 Planar Configuration: single image plane Software: Neos DateTime: 2007:05:23 23:24:32 Artist: Giuseppe Sacco (giuseppe) HostComputer: scarafaggio and there were no errors reported (please note the -D option). Then I converted the TIFF file to PDF as shown here: [EMAIL PROTECTED]:~/Desktop$ tiff2pdf -o scontrini-maggio-infor-bm.pdf scontrini-maggio-infor-bm.tiff and then I run xpdf in order to disply it. xpdf show an empty page and it prints this error: [EMAIL PROTECTED]:~/Desktop$ xpdf scontrini-maggio-infor-bm.pdf Error (1388): Bad DCT data: incorrect restart marker Warning: Attempt to remove nonexistent passive grab Using evince as an alternative program to display the PDF file print a different error message: [EMAIL PROTECTED]:~/Desktop$ evince scontrini-maggio-infor-bm.pdf Error: Could not find start of jpeg data converting the PDF file to PostScript usng ghostscript display a different error: [EMAIL PROTECTED]:~/Desktop$ pdf2ps scontrini-maggio-infor-bm.pdf scontrini-maggio-infor-bm.ps **** Warning: File has insufficient data for an image. **** This file had errors that were repaired or ignored. **** The file was produced by: **** >>>> libtiff / tiff2pdf - 20060323 / d <<<< **** Please notify the author of the software that produced this **** file that it does not conform to Adobe's published PDF **** specification. changing the tiff compression algorithm from JPEG to LZW and the converting the resulting TIFF to PDF does work: [EMAIL PROTECTED]:~/Desktop$ tiffcp -c lzw scontrini-maggio-infor-bm.tiff scontrini-maggio-infor-bm.tiff.2 [EMAIL PROTECTED]:~/Desktop$ tiffinfo scontrini-maggio-infor-bm.tiff.2 TIFF Directory at offset 0x34152 (213330) Image Width: 1248 Image Length: 1753 Resolution: 150, 150 pixels/inch Bits/Sample: 8 Compression Scheme: LZW Photometric Interpretation: min-is-black YCbCr Subsampling: 2, 2 Orientation: row 0 top, col 0 lhs Samples/Pixel: 1 Rows/Strip: 8 Planar Configuration: single image plane Software: Neos DateTime: 2007:05:23 23:24:32 Artist: Giuseppe Sacco (giuseppe) HostComputer: scarafaggio [EMAIL PROTECTED]:~/Desktop$ tiff2pdf -o x.pdf scontrini-maggio-infor-bm.tiff.2 [EMAIL PROTECTED]:~/Desktop$ xpdf x.pdf Warning: Attempt to remove nonexistent passive grab Bye, Giuseppe -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-4-686 Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8) Versions of packages libtiff-tools depends on: ii libc6 2.5-4 GNU C Library: Shared libraries ii libjpeg62 6b-13 The Independent JPEG Group's JPEG ii libtiff4 3.8.2-7 Tag Image File Format (TIFF) libra ii zlib1g 1:1.2.3-13 compression library - runtime libtiff-tools recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]