rtf格式为pdf [英] rtf format to pdf

查看:122
本文介绍了rtf格式为pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用PHP将rtf格式转换为pdf?

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

谢谢

推荐答案

如果您要坚持使用纯PHP,则可以使用HTML作为中介:

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

  1. 将RTF转换为HTML
    http://freshmeat.net/projects/rtf2htm/ http://htmlpurifier.org/
  2. 将HTML转换为PDF
    http://dompdf.github.io/
  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/

这篇关于rtf格式为pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆