问题
I'm trying to find a 'free' RTF to plain text converter for PHP. Does anyone know of a good one? All of the ones Google found don't work.
回答1:
Have you tried this link? Found it on Google.
I have tried it using a RTF file made by OpenOffice, and it works. It can extract the texts from RTF file, but some special characters are wrongly encoded. Or, am I missing? What did you mean of "plain text"?
回答2:
I tried several solutions for similar issue, the only one I found wich was working in my case is this one : https://github.com/silvermine/php-rtflex
Hope this helps.
来源:https://stackoverflow.com/questions/9273937/rtf-to-plain-text