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-23 05:03:07.501647-07 by kodo in response to 12831
Re: Adding images
Fantastic, thanks very much Markus. I admit I've a lot to learn still, sometimes I struggle a bit with the syntax on the odd CPAN modules. On the POD (http://search.cpan.org/~markusb/PDF-Create-1.06/lib/PDF/Create.pm) does mention adding images, but with no code example, just a few lines that to a newby like me are cryptic :(

image(<filename>)
+ a bit of text about Preparing an XObject

image( image_id, xpos, ypos, xalign, yalign, xscale, yscale, rotate, xskew, yskew)
+ a bit about why small GIF images wont work and a small bit about each paramiter.

No actual examples. Looking back at my previous attempts I did get close on one ooccation with the following code, but as you can see (and as I see now) while it was close it was completely wrong! It seems so obvious now I see the correct code!

$page2->image( image_id => "$image1", xpos => '300', ypos => '500', xalign => '1', yalign => '2', xscale => '1.0', yscale => '1.0', rotate => '0', xskew => '0', yskew => '0');


Thanks again for the help, much appreciated!
Direct Responses: 12833 | Write a response