Today I added a bounding box class to PDFLib.pm, so now you can say:
my $bb = $pdf->new_bounding_box(x => 30, y => 500, w => 200, h => 800);
$bb->set_font(bold => 1);
$bb->set_font(italic => 1);
$bb->print("and italic ");
$bb->set_color(rgb => [1,0,1]);
$bb->print("and colourful ");
$bb->set_color(rgb => [0,0,0]);
$bb->set_font(face => "Times", italic => 0, bold => 0);
And it will basically do what you told it to, all within the bounds of the box you specified. Kinda neat huh?
It's basically a port and extension of the code I wrote for AxPoint, which I may just now convert to use this new stuff, as it's a lot easier for me to use in this abstract way.
I hope more people start to use PDFLib - it's a rather cool library, and seems very fast and efficient, and PDFLib.pm makes it pretty easy to use, and the results are pretty gorgeous.