]> _ Git - cubist_util.git/commitdiff
#7684
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 7 Aug 2025 15:35:19 +0000 (17:35 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 7 Aug 2025 15:35:19 +0000 (17:35 +0200)
src/CommandLine/Poppler.php

index bce20c765593ce2438a61a1766d41c8c86f59f8b..567a660976e473877c8bf90b4d2986a64075f5da 100644 (file)
@@ -95,7 +95,7 @@ class Poppler
             $pdftoppm->setArg('-freetype', (!isset($options['texts']) || $options['texts']) ? 'yes' : 'no');
             $pdftoppm->setArg('-singlefile');
             self::_crop($pdftoppm, $page, $rect, $options['resolution'], $options['factor']);
-            self::_exec($pdftoppm, $file, $dest, true);
+            self::_exec($pdftoppm, $file, $dest);
         }
 
         if (isset($lockFile)) {
@@ -133,6 +133,7 @@ class Poppler
         $pdftocairo->setArg('-paperh', round($invertPaper ? $rect['width'] : $rect['height']));
         self::_crop($pdftocairo, $page, $rect, 1, 1);
         self::_exec($pdftocairo, $file, $destfile);
+        $pdftocairo->error_log();
         return $pdftocairo;
     }