From: Vincent Vanwaelscappel Date: Thu, 7 Aug 2025 14:48:14 +0000 (+0200) Subject: wip #7684 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=0da764becc7da7886c94ed42f1ea0be9bbf363fa;p=fluidbook_processfarm.git wip #7684 --- diff --git a/app/src/PDFOperations.php b/app/src/PDFOperations.php index 8a433dd..9e0e036 100644 --- a/app/src/PDFOperations.php +++ b/app/src/PDFOperations.php @@ -82,6 +82,12 @@ class PDFOperations public static function extractArea($pdf, $cache, $page, $rect, $options) { + if (is_string($options)) { + $options = json_decode($options, true); + } + if (is_string($rect)) { + $rect = json_decode($rect, true); + } $out = PDF::extractArea(Buffer::getIn($pdf), $page, $rect, null, $options, $cache); Buffer::syncOut(); return $out;