generating PDF with images

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
good day,
I try to generate PDF with images. My code looks like this:

use PDF::API2;
@imgs=( $pdf->image_png('1.png'),
$pdf->image_png('2.png') );
foreach my $img (@imgs)
$page = $pdf->page;


And I get the following problem after program was started:

Unsupported Interlace(1) Method at /usr/share/perl5/PDF/API2/Resource/XObject/Image/ line 45.

Would anyone give additional information, what is wrong with PDF::API2?!

Re: generating PDF with images

Quoted text here. Click to load it

It appears your PNG is interlaced using a method PDF::API2 does not  
like. Try opening it in an image editing program and saving it without
any interlacing (interlacing is pointless for print or PDF).


Justin C, by the sea.

Site Timeline