You can use Imagemagick
www.imagemagick.org and php php.net to accomplish this. It will take some trial and error but you can get the job done. The best thing about it is that it's free. imagemagick supports post script and ttf fonts you can also change image size, rotate, add borders, effects like blurs, gradients etc. very powerful.
__________________
www.squitosoft.com - PHP development site. featuring Squito Gallery. a php driven photo gallery.
www.rgfx.net - Specializing in Internet solutions, including Html authoring, Interactive Web sites, 3D/2D Graphics and animation.