Subject: | image_gif creates corrupt images. |
Date: | Fri, 25 May 2007 09:58:11 -0700 |
To: | bug-PDF-API2 [...] rt.cpan.org |
From: | Rutger Ovidius <r_ovidius [...] eml.cc> |
Hello,
PDF-API2-0.61 on perl 5.8 on linux or win32.
Using the attached .gif with image_gif outputs a corrupt image in the
pdf.
Converting it to a .png and using image_png works.
use PDF::API2;
$pdf = PDF::API2->new(-file=>"filename.pdf");
$page = $pdf->page;
$gfx = $page->gfx;
$img = $pdf->image_gif("0001.gif");
$gfx->image($img, 0, 0);
$pdf->save();
$pdf->end();
Message body is not shown because sender requested not to inline it.