From: Vincent Vanwaelscappel Date: Wed, 19 Feb 2025 08:45:30 +0000 (+0100) Subject: wip #7340 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=314dbee7b3905ce2b45b0654c83d40866ae4eff5;p=cubist_pdf.git wip #7340 --- diff --git a/src/PDFTools.php b/src/PDFTools.php index 9c769ab..17666f1 100644 --- a/src/PDFTools.php +++ b/src/PDFTools.php @@ -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); }