|
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!
|