This is only a very special case of “how to add text given on the command line to a PDF file?“
If I don’t find a nice and read utility to do this,
- I will create an image file from the PDF file,
- I will create another image file from that text string (ImageMagick, GraphicsMagic?!?),
- and I will finally overlay them (ImageMagick, GraphicsMagic?!?).
Update 2011-07-04:
I am using text2pdf (a rather, rather simple tool) for this task (regard this as one logical line):
$ echo “text to be printed into the upper left corner” | /usr/local/text2pdf/text2pdf -A4 -s10 -v12 | pdftk original_file output file_with_sth_in_its_upper_left_corner background –