Add pdf and rtf generation