From: Vincent Vanwaelscappel Date: Thu, 7 Aug 2025 15:08:36 +0000 (+0200) Subject: #7684 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=2f9816fd3fad4aa606ed2b63658cec3279bdc636;p=cubist_util.git #7684 --- diff --git a/src/CommandLine/Poppler.php b/src/CommandLine/Poppler.php index 1915bcf..9e504d2 100644 --- a/src/CommandLine/Poppler.php +++ b/src/CommandLine/Poppler.php @@ -44,7 +44,7 @@ class Poppler if (null !== $cache) { Files::mkdir($cache); - $hash = self::filehash($file, $page, $rect, $options); + $hash = self::extractAreaFilehash($file, $page, $rect, $options); $cacheFileWithoutExt = $cache . $hash; $cacheFile = $cacheFileWithoutExt . '.' . $extension; @@ -111,7 +111,7 @@ class Poppler return $res; } - public static function filehash($file, $page, $rect, $options) + public static function extractAreaFilehash($file, $page, $rect, $options) { $f = Files::hashFileAttributes($file) . '||' . '++' . json_encode($rect) . '**' . json_encode($options) . '||' . $page . '!!'; return hash('sha256', $f);