Sorry Steve I have a made a few assumptions.
Generation of Documents and Reports in AwareIM can be a number of forms - PDF, Text or documents in MS Word .doc format.
Word format Documents in AwareIM requres that AwareIM interacts with the MS Word application on the same machine. However when AwareIM is running on a Linux machine this is not possible. A workaround is possible by converting the word document to a text format and then treating it as a text document that AwareIM can search for tags and replace.
The Rich Text Format (often abbreviated RTF) is a free document file format developed by Microsoft in 1987 for cross-platform document interchange. Most word processors are able to read and write RTF documents. See http://en.wikipedia.org/wiki/Rich_Text_Format
The idea is to embed <<AWareIM.tags>> into the word document either before or after it has been converted to RTF. This is always done in a wordprocessor that can load and save RTF because the RTF codes are not very human readable. (If you are developing in AWareIM from a windows machine it will use word to open the rtf document for you.)
The gotcha is that word does not know about the AwareIM tags and I found that it is possible to have a mixture of invisible RTF formatting inside the AwareIM tags - this confuses AwareIM and will cause and error when you try to save the document in AwareIM.
The best way to remove these mixed invisible codes is to open the document in Word or whatever wordprocessor you use. Copy the AwareIM tag and paste it into a plain vanilla text editor that has no provision for hidden codes (this effectively removes the RTF codes) Then copy the now clean text and paste it back into the RTF document.
You may well find that you have multiple instances of these spread throughout the document especially after you have been formatting it so you will either need to work through the document saving each time to find the next error.
(NB You can quickly sanitise a whole document by Select All and paste then copy back from the text editor but you will lose all your formatting.)
I hope this helps
John