|
Hi, now forgive me for being new, I have PDF-Create working just wonderfully, but I cannot find an example of an image being added to a pdf anywhere, and I've search all day. I have installed (and using)
PDF::Image::GIF
PDF::Image::JPEG
I've created the image object
my $image1 = new PDF::Image::JPEG('testImage.jpg');
All works up to here and the PDF document gets created fine, but as soon as I try to add the image (the next line) to the page it stops working
$page2->image($image1, 100, 100, 1, 2, 1.0, 1.0 ,0, 0, 0);
I'm totally lost now having tried everything I can think of, posting here is my last resort.
Thanks in advance.. |