in reply to Re^2: Adding text to an image for printing
in thread Adding text to an image for printing

Hi tel2,

Check out this: http://search.cpan.org/~lds/GD-2.56/lib/GD.pm

Using GD one can create empty canvas and then draw what you want and save in many different formats when ready.

Using GD even you can insert a small marker image to a given position into a big picture.

$myImage = new GD::Image(100,100); ... various drawing stuff ... $srcImage = new GD::Image(50,50); ... more drawing stuff ... # copy a 25x25 pixel region from $srcImage to # the rectangle starting at (10,10) in $myImage $myImage->copy($srcImage,10,10,0,0,25,25);

Regards

Replies are listed 'Best First'.
Re^4: Adding text to an image for printing
by tel2 (Pilgrim) on Nov 30, 2014 at 20:35 UTC
    Thanks pme, but I'm sorry, I don't see how that addresses the last point I made.

    Are you still saying I could use GD to do what I want (i.e. create a single file for users to download & print, which could have 10 pages containing 2 images per page), without putting them in a PDF?  If so, how (I'm not asking for code now, just process and file formats, i.e. what kind of container can the graphics+text be put in which can contain many pages for printing 2 certificates per page)?  Or when you say "different formats", are you including PDF in that list of formats?
    (I guess multipage TIFF is one option, but I'm not sure I want to go that way, because, for one thing, the users might struggle with it.)

    Thanks.
    tel2

      Hi tel2, Sorry for not answering soo long. You can do the format conversion with ImagMagick as RonW suggested below. Regards