campbad.blogg.se

Php convert openoffice pdf docx
Php convert openoffice pdf docx









php convert openoffice pdf docx

Path for the python executable on Linux The execution of soffice is performed through the unoconv script and you only need to specify the document’s location. The document is converted using the soffice executable that is provided with the installation of LibreOffice or OpenOffice. If you don’t have these tools installed and you can’t install them because you have no control over the server (for instance, you are using a shared hosting), check my suggestion at the end of the article.īeside this, you’ll also need a Python script called unoconv ( download the latest version on GitHub. The solution I’m showing here works both for Windows and Linux servers as long as you have LibreOffice or OpenOffice installed.

php convert openoffice pdf docx

In this article I’ll demonstrate how you can convert OpenXML or (preferably) OpenDocument reports to PDF using LibreOffice or OpenOffice. But what if you need to provide the documents in PDF for the final users?

php convert openoffice pdf docx

In the previous article I’ve introduced you to OpenTBS which is a class able to create and edit OpenXML and OpenDocument documents in PHP, extremely useful for report generation.











Php convert openoffice pdf docx