I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2010-07-22 09:25:24.095335-07 by kodo
Adding images
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..
Direct Responses: 12829 | 12831 | Write a response