rtf_document function

Convert to an RTF document