From 0da764becc7da7886c94ed42f1ea0be9bbf363fa Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 7 Aug 2025 16:48:14 +0200 Subject: [PATCH] wip #7684 --- app/src/PDFOperations.php | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.39.5