generate rtf file