I am seeking a solution to converting HTML + CSS (2.1) to RTF in PHP. While I have found a superb solution for HTML to PDF in Prince XML, I\'ve yet to find anything that:>
The easiest way to do this is using phpLiveDocx. It is component for the Zend Framework and completely free.
Supported template file formats (input)
Supported document file formats (output)
From the project web site:
"phpLiveDocx allows developers to generate documents by combining structured data from PHP with a template, created in a word processor. The resulting document can be saved as a PDF, DOCX, DOC or RTF file. The concept is the same as with mail-merge."
For details, see:
http://www.phplivedocx.org/articles/brief-introduction-to-phplivedocx/