From: Louis Jeckel Date: Thu, 3 Dec 2020 11:49:08 +0000 (+0100) Subject: log X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=4e2ed69151e382ec5603ba66981014f19a0fc53d;p=psq.git log --- diff --git a/app/Pdftk.php b/app/Pdftk.php index fb1b26a..a2adcce 100644 --- a/app/Pdftk.php +++ b/app/Pdftk.php @@ -17,7 +17,12 @@ class Pdftk */ protected static function run($command, $inputFile, $outputFile) { - exec("pdftk $inputFile output $outputFile $command", $output, $var); + $command1 = "pdftk $inputFile output $outputFile $command"; + \Log::debug("EXEC $command1"); + + exec($command1, $output, $var); + + \Log::debug("RETURN $var"); if($var === 0) { return $output; @@ -56,6 +61,7 @@ class Pdftk */ public static function replaceLinks($file, callable $callback) { + $uncompressed = sys_get_temp_dir().'/'.uniqid('pdftk', false); self::uncompress($file, $uncompressed);