]> _ Git - psq.git/commitdiff
log
authorLouis Jeckel <louis.jeckel@outlook.com>
Thu, 3 Dec 2020 11:49:08 +0000 (12:49 +0100)
committerLouis Jeckel <louis.jeckel@outlook.com>
Thu, 3 Dec 2020 11:49:08 +0000 (12:49 +0100)
app/Pdftk.php

index fb1b26a35c333903d55e840b13d8937cb50f37ae..a2adcce0bd5cdc950a263f6e11af66e1dee8ab77 100644 (file)
@@ -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);