From cb19bdb153827dea65b38f9d4d545a708146a2c7 Mon Sep 17 00:00:00 2001 From: Igor Finagin Date: Fri, 10 Feb 2017 17:22:31 +0300 Subject: [PATCH] Fix binary path for MacOS --- src/Pdf/Docx/Converter/LibreOffice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pdf/Docx/Converter/LibreOffice.php b/src/Pdf/Docx/Converter/LibreOffice.php index b47c3cb..193c81c 100644 --- a/src/Pdf/Docx/Converter/LibreOffice.php +++ b/src/Pdf/Docx/Converter/LibreOffice.php @@ -70,7 +70,7 @@ class LibreOffice extends Container implements DocxConverter */ protected function setDefaults() { - $this->binary = '/usr/bin/libreoffice'; + $this->binary = defined('PHPWORD_LIBREOFFICE_BINARY') ? PHPWORD_LIBREOFFICE_BINARY : '/usr/bin/libreoffice'; $this->profile = '/tmp/gears-pdf-libreoffice';