在 Linux 上使用命令行将 openoffice 文档 (odt) 转换为 PDF?

发布于 2024-09-01 16:20:26 字数 443 浏览 3 评论 0原文

我们正在构建一个 PHP 脚本,我们需要在工作中创建 PDF 格式的报告,

该报告将使用 postgrSQL 中的模板创建。

到目前为止,我发现可以使用 php 和 odt (openoffice) 文件来完成 [http://www .odtphp.com/](您还有其他建议吗?)

现在我如何将结果转换为 PDF,以便教师获得 PDF 形式的最终报告,

有什么建议吗?服务器没有 GUI,我想让它尽可能简单,

我们尝试使用 PHP 直接使用 FPDF 转换 PDF [http ://www.fpdf.org/] 但它确实是CPU杀手!

we are building a PHP script that we need at work to create reports in PDFs

the reports will be created by using templates from postgrSQL.

so far I found that it can be done with the use of php and odt (openoffice) files [http://www.odtphp.com/] (do you have any other suggestions?)

now how I can convert the results to PDF so teachers will get the final reports as PDF

any tips? the server has no GUI and I want to make it as simple as possible

we tried using PHP to PDF directly with FPDF [http://www.fpdf.org/] but it is really a CPU killer!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冷︶言冷语的世界 2024-09-08 16:20:26

http://www.artofsolving.com/opensource/pyodconverter

这可能会帮助你,它需要将 OpenOffice 作为服务启动,而 python 脚本只是利用其 api,也许您也可以用 PHP 编写一个

http://www.artofsolving.com/opensource/pyodconverter

this may help you, it needs to start OpenOffice as service, and the python script is merely utilizing its api, maybe you can write one in PHP too

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文