From 2f9816fd3fad4aa606ed2b63658cec3279bdc636 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 7 Aug 2025 17:08:36 +0200 Subject: [PATCH] #7684 --- src/CommandLine/Poppler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5