]> _ Git - fluidbook_processfarm.git/commitdiff
wip #7684
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 7 Aug 2025 14:48:14 +0000 (16:48 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 7 Aug 2025 14:48:14 +0000 (16:48 +0200)
app/src/PDFOperations.php

index 8a433dd7ae1e7cf67a0b1d57122113a55e463706..9e0e0365784e68d39aa8d95dcb6484ff0989136c 100644 (file)
@@ -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;