diff --git a/src/Pdf.php b/src/Pdf.php index 8605326..55c9f3f 100644 --- a/src/Pdf.php +++ b/src/Pdf.php @@ -185,7 +185,7 @@ public function getCommand() { $this->setOptions(['generate'=>['noFrames' => false]]); $output = $this->getOutputDir() . '/' . preg_replace("/\.pdf$/", '', basename($this->file)) . '.html'; $options = $this->generateOptions(); - $command = $this->getOptions('pdftohtml_path') . ' ' . $options . ' ' . escapeshellarg($this->file) . ' ' . $output; + $command = $this->getOptions('pdftohtml_path') . ' ' . $options . ' ' . escapeshellarg($this->file) . ' ' . escapeshellarg($output); return $command; }