Page 1 of 1

headers and footers from convert

Posted: 2007-05-29T00:28:20-07:00
by bjb
I am tasked to find a way to put headers and footers on printouts made by the convert program. The option -label does the trick for headers, but I have not found anything similar for footers. Can footers be made by convert, or do I need some program between convert and lp (yes, this is on unix) to achieve this?

Re: headers and footers from convert

Posted: 2007-06-03T19:47:51-07:00
by anthony
How are you using -label as a header???

See IM Examples, Annotate Images/
http://www.imagemagick.org/Usage/annotating/

Re: headers and footers from convert

Posted: 2007-06-05T02:32:20-07:00
by bjb
anthony wrote:How are you using -label as a header???
The command line option I used was simply: -label "My running header"

Which produces a nice header on top of the page.
See IM Examples, Annotate Images/
http://www.imagemagick.org/Usage/annotating/
Annotate does not quite do what I need. What I need are running headers and footers disconnected from the image itself.

Re: headers and footers from convert

Posted: 2007-06-05T03:12:11-07:00
by anthony
bjb wrote:The command line option I used was simply: -label "My running header"

Which produces a nice header on top of the page.
Oh, you were outputing th eimage to postscript.
A file format specific use of -label, not a general image processing operation.
bjb wrote:What I need are running headers and footers disconnected from the image itself.
That is not posible with IM postscript output. You are getting into a area much better suited to vector graphics, rather than Raster Images as IM provides.

The better idea is to use a nothing program like XFig to create a postscript document containing your labels and include normal image rather than a postscript image. There are many such object editors out there designed to generate postscript from smaller components.
However the "Fig" file format is so simple and well documented you can script up an automatic labeling program to wrap around images.

A very complex, commercial windows specific alturnative is FrontPage.

A less commonly known but just as complex is teTeX whcih can generate postscript suitable not only for a general page, but also whole books, which complex diagrams, indexing, cross referencing and mathematical expressions.