openoffice document (odt) to PDF with command line on Linux?

a 夏天 提交于 2019-12-02 15:39:22

问题


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!


回答1:


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



来源:https://stackoverflow.com/questions/2832535/openoffice-document-odt-to-pdf-with-command-line-on-linux

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!