I need to convert HTML from WYSIWYG HTML input boxes from TinyMCE into RTF. I have an RTF template document, I then take figures from the MySQL database and do a find and replace on certain fields in order to generate a report.

There are some sections where the user can enter HTML encoded text using TinyMCE, I would like to be able to add this data to the report, changing the HTML encoding to RTF encoding. Is this possible, and can someone please supply maybe a code snippet, or a location of a download for something that is already running.

TIA

    Thanks for that, but I have already searched through Google.

    I have found a lot of free windows applications that can convert between rtf, html and pdf. The issue is I need my PHP application to do it for the user, without them needing to use another application to do it. That is why I need to be able to alter the encoding between html and rtf.

    I eventually want to convert the rtf file into a pdf as well, from my php application. Any ideas?

      Write a Reply...