Tags printed on a Note

When printing a note file (RTF) I would like to have its tags printed on the first page. Similar to what lawyers use for Bates numbering, but in this case tags. How would it be possible? (I don’t know if this post should be here on Scripting or not)

Nothing built into DEVONthink does this, but it could be done with a custom script.