From 4e2ed69151e382ec5603ba66981014f19a0fc53d Mon Sep 17 00:00:00 2001 From: Louis Jeckel Date: Thu, 3 Dec 2020 12:49:08 +0100 Subject: [PATCH] log --- app/Pdftk.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); -- 2.39.5