rtf_doc function

Create an RTF document object