Bug#622078: libpdf-api2-perl: occasional broken conversion of TIFF images
Ralph A. Smith
smith.ralph.a at gmail.com
Sat Apr 9 19:24:40 UTC 2011
Package: libpdf-api2-perl
Version: 0.73-1
Severity: normal
Tags: upstream
Some TIFF files are distorted during conversion to PDF. The symptom is
that one or more sections of the image appear to be shifted horizontally.
(ImageMagick does not seem to have trouble converting these images.)
This bug also affects gscan2pdf. I have found the same problem with a
development version from the current upstream maintainer's github repo.
The following code produces a PDF with this problem from the attached image.
use PDF::API2;
my $pdf = PDF::API2->new( -file => "sample.pdf");
my $page = $pdf->page;
my $filename = "sample.tif";
my $gfx = $page->gfx;
my $imgobj = $pdf->image_tiff( $filename);
$gfx->image($imgobj,0,0,2196/3,1696/3);
$page->mediabox(2196/3,1696/3);
$page->cropbox(0,0,2196/3,1696/3);
$pdf->save;
$pdf->end();
-- System Information:
Debian Release: 6.0.1
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libpdf-api2-perl depends on:
ii libcompress-zlib-perl 2.024-1 Transitional dummy package for Com
ii libio-compress-perl [libcompr 2.024-1 bundle of IO::Compress modules
ii perl [libcompress-zlib-perl] 5.10.1-17 Larry Wall's Practical Extraction
ii ttf-dejavu 2.31-1 Metapackage to pull in ttf-dejavu-
libpdf-api2-perl recommends no packages.
libpdf-api2-perl suggests no packages.
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample.tif.gz
Type: application/x-gzip
Size: 104717 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20110409/357bfb62/attachment-0001.bin>
More information about the pkg-perl-maintainers
mailing list