HTML + CSS到RTF(PHP)? [英] HTML+CSS to RTF (in PHP)?

查看:208
本文介绍了HTML + CSS到RTF(PHP)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个解决方案,将PHP + CSS(2.1)转换为RTF。虽然我在 Prince XML 中找到了一个用于HTML到PDF的出色解决方案,但我还没有找到任何东西:

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:


  • 可以将HTML转换为RTF(或DOC);

  • / li>
  • 可从PHP调用;

  • 处理分页媒体并可添加页眉和页脚;和

  • 处理表格。

  • can convert HTML to RTF (or DOC);
  • runs on a Linux server;
  • is callable from PHP;
  • handles paged media and the ability to add page headers and footers; and
  • handles tables.

有什么吗?

推荐答案

最简单的方法是使用 phpLiveDocx

The easiest way to do this is using phpLiveDocx. It is component for the Zend Framework and completely free.

支持的模板文件格式(输入)

Supported template file formats (input)


  • DOCX - Microsoft Word DOCX格式

  • DOC - Microsoft Word DOC格式

  • RTF-富文本格式文件

  • TXD - TX文本控制格式

  • DOCX - Microsoft Word DOCX Format
  • DOC - Microsoft Word DOC Format
  • RTF - Rich Text Format File
  • TXD - TX Text Control Format

支持的文档格式(输出)

Supported document file formats (output)


  • DOCX - Microsoft Word DOCX格式

  • DOC - Microsoft Word DOC格式

  • RTF - 富文本格式文件

  • PDF - Acrobat可移植文档格式

  • TXD - TX文本控制格式

  • TXT - ANSI纯文本

  • DOCX - Microsoft Word DOCX Format
  • DOC - Microsoft Word DOC Format
  • RTF - Rich Text Format File
  • PDF - Acrobat Portable Document Format
  • TXD - TX Text Control Format
  • TXT - ANSI Plain Text

从项目网站:

phpLiveDocx允许开发人员通过将来自PHP的结构化数据与在文字处理器中创建的模板组合来生成文档。生成的文档可以另存为PDF,DOCX,DOC或RTF文件,其概念与邮件合并相同。

"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."

有关详情,请参阅:

http://www.phplivedocx.org/articles/brief-introduction-to-phplivedocx/

这篇关于HTML + CSS到RTF(PHP)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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