php – Read files in RTF format and generate a TXT file


Is it possible to read an RTF file and rewrite it in TXT format, using PHP?
I did some tests using fopen() and file_get_contents() , but the results were not as expected.


It would be easier if you used libraries for this purpose.

According to the example on Github, you can do:

$doc = new \Jstewmc\Rtf\Document();
Scroll to Top