You should print its contents to STDOUT.
In reply to Re: Displaying RTF string to browser by bart in thread Displaying RTF string to browser by ikkon