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'); } } }