|
Posted by nobull@mail.com on January 12, 2006, 10:19 am
Please log in for more thread options
Kevin Luff wrote:
> Hi,
> I've just started working with the PDF::API2 module.
>
> I can make a PDF with text, draw boxes and circles - but I cannot figure
> how to use the image methods to insert a jpeg for example.....
>
> Anybody know how???
Just grabbing a few lines from one of my programs...
my $page = $pdf->page;
#.....
my $img=$pdf->image_jpeg($jpeg_file);
my $gfx=$page->gfx;
$gfx->image($img,$x,$y,$w,$h);
|