rtf format to pdf
11,346
Solution 1
If you want to stick with pure PHP, you can probably use HTML as an intermediary:
- Convert RTF to HTML
http://freshmeat.net/projects/rtf2htm/ , http://www.phpclasses.org/package/1930-PHP-RTF-to-HTML-converter-with-latin-character-support.html - Optionally: clean up the HTML
http://htmlpurifier.org/ - Convert HTML to PDF
http://dompdf.github.io/
Solution 2
You can use OpenOffice command line interface for that. Check my answer to a similar question.
Solution 3
Ted is the tool you're looking for. Ted brings also a script called rtf2pdf.sh you can execute by PHP to create a PDF file.
Comments
-
jose almost 2 years
Is there any way to convert rtf format to pdf using PHP?
Thanks