water has asked for the wisdom of the Perl Monks concerning the following question:

Hi -- I have a perl script that writes a file for graphviz's dot, which then generates ps or gif or jpeg. I'd like to put a title and a page number on the finished image, but I can't figure out how to do it. If there's a way to use dot to add titles and page numbers, that'd be great to know (and in that case, apologies for the non-perl post.) If not, what's the best way wrangle dot output -- ps or gif or jpeg or even pdf (via ps2pdf) are easily generated -- using perl to toss on titles and page nums on the images?

Thanks

water

Replies are listed 'Best First'.
Re: GraphViz & dot -- adding titles?
by punkish (Priest) on Sep 19, 2004 at 01:09 UTC
    I have no idea what graphviz'd dot is, but I think it is fairly easy to read an image, "write" something on it, and write out the composite image using gd. I am sure GD.pm offers the hooks to do that. I have done this routinely to take maps (created on the fly) and add copyright or attribution info to the resulting pngs.
Re: GraphViz & dot -- adding titles?
by Anonymous Monk on Sep 19, 2004 at 06:13 UTC
    1. RTFM
    2. Pick any graphics package and RTFM