From c3a79d42b0ec51409e14af68f7276a1c365b0300 Mon Sep 17 00:00:00 2001 From: Marco Hoffmeier Date: Sat, 22 Feb 2020 21:33:20 +0100 Subject: [PATCH] Add: dot to PDF-Filepath --- src/WrkLst/DocxMustache/DocxMustache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WrkLst/DocxMustache/DocxMustache.php b/src/WrkLst/DocxMustache/DocxMustache.php index 53fdb06..40acb36 100644 --- a/src/WrkLst/DocxMustache/DocxMustache.php +++ b/src/WrkLst/DocxMustache/DocxMustache.php @@ -480,12 +480,12 @@ public function SaveAsPdf() //wait until process is ready } // executes after the command finishes - if (!$process->isSuccessful()) { + if (! $process->isSuccessful()) { throw new \Symfony\Component\Process\Exception\ProcessFailedException($process); } else { $path_parts = pathinfo($this->StoragePath($this->local_path.$this->template_file_name)); - return $this->StoragePath($this->local_path.$path_parts['filename'].'pdf'); + return $this->StoragePath($this->local_path.$path_parts['filename'].'.pdf'); } } }