rtf format to pdf

前端 未结 4 507
甜味超标
甜味超标 2021-01-06 08:49

Is there any way to convert rtf format to pdf using PHP?

Thanks

相关标签:
4条回答
  • 2021-01-06 09:12

    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.

    0 讨论(0)
  • 2021-01-06 09:14

    You should try out livedocx livedocx.com . The latest Zend Framework 1.10 has a ready built module to help you out. You can read more about it at this place http://www.phpfreaks.com/tutorial/template-based-document-generation-using-livedocx-and-zend-framework

    0 讨论(0)
  • 2021-01-06 09:24

    If you want to stick with pure PHP, you can probably use HTML as an intermediary:

    1. 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
    2. Optionally: clean up the HTML
      http://htmlpurifier.org/
    3. Convert HTML to PDF
      http://dompdf.github.io/
    0 讨论(0)
  • 2021-01-06 09:37

    You can use OpenOffice command line interface for that. Check my answer to a similar question.

    0 讨论(0)
提交回复
热议问题