]> _ Git - cubist_pdf.git/commitdiff
wip #7340
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 19 Feb 2025 08:45:30 +0000 (09:45 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 19 Feb 2025 08:45:30 +0000 (09:45 +0100)
src/PDFTools.php

index 9c769ab5cd920363c612afd68b67d4e371ed351c..17666f1a4eece27aaae1e8cce64988d592805944 100644 (file)
@@ -366,7 +366,7 @@ class PDFTools
         if ($method === 'GS') {
             self::makeShotGS($in, $out, $page, $prefix, $resolution, $quality, $antialiasing, $width, $height, $format);
         } elseif ($method === 'PNM') {
-            self::makeShotPNM($in, $out, $page, $prefix, $resolution, $quality, $antialiasing, true, $width, $height, $format);
+            self::makeShotPNM($in, $out, $page, $prefix, $resolution, $quality, $antialiasing, true, false, $width, $height, $format);
         }
         // Test the result by checking all files
         if (!file_exists($out)) {
@@ -375,7 +375,7 @@ class PDFTools
         // If error, we try to make thumbs with other method
         if ($error) {
             if ($method === 'GS') {
-                self::makeShotPNM($in, $out, $page, $prefix, $resolution, $quality, $antialiasing, true, $width, $height, $format);
+                self::makeShotPNM($in, $out, $page, $prefix, $resolution, $quality, $antialiasing, true, false, $width, $height, $format);
             } elseif ($method === 'PNM') {
                 self::makeShotGS($in, $out, $page, $prefix, $resolution, $quality, $antialiasing, $width, $height, $format);
             }