Doc to PDF with PHP + Openoffice

拜拜、爱过 提交于 2019-12-04 15:36:26

You have to have OpenOffice setup to run as a service on that machine. To simply convert an odt to a pdf you can use pyodconverter. They also explain how to setup the local OpenOffice service: http://www.artofsolving.com/opensource/pyodconverter

I'm using this technique in a script I wrote and have an article for here: http://codeuniversity.com/scripts/scr1

Please install Open Office in your Directory. OpenOffice setup to run as a service on that machine.

it is much easier to use headless libreoffice and a php wrapper class like https://github.com/ncjoes/office-converter. of course you have to install libreoffice and you must have full control of your webserver.

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