开源php doc/x到pdf转换? [英] Open source php doc/x to pdf conversion?
问题描述
我是否可以使用任何开源PHP工具将.doc/.docx转换为pdf?
Are there any open source PHP tools that i can use to convert .doc / .docx to pdf ?
如果您有任何不错的教程或工具,将不胜感激.
If you have any good tutorials or tools that would be greatly appreciated .
我一直在研究phpLiveDocx,但看起来他们每月收费.
I was looking into phpLiveDocx but looks like they charge monthly.
或者是在php或linux中将.odt转换为pdf吗?
Or maybe an .odt to pdf in php or linux ?
推荐答案
有关特定于PHP的选项,请查看 PHPWord -这个库是用纯PHP编写的,并提供了一组类来读写不同的文档文件格式(包括.doc和.docx)
For a PHP-specific option check out PHPWord - this library is written in pure PHP and provides a set of classes to write to and read from different document file formats (including .doc and .docx)
或者,如果您想要更轻松的生活,则可以使用商业API,例如 Zamzar .这项服务已有10多年的历史了,它提供了用于文件转换的API,您可以直接从调用该API PHP .
Alternatively if you want an even easier life you could use a commercial API such as Zamzar. This service has been around for 10+ years and provides an API for file conversion which you can call directly from PHP.
完全公开:我是Zamzar API的首席开发人员.
Full disclosure: I'm the lead developer for the Zamzar API.
这篇关于开源php doc/x到pdf转换?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!