]> _ Git - fluidbook_tools.git/commitdiff
wip #7684 @3
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 7 Aug 2025 10:47:38 +0000 (12:47 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 7 Aug 2025 10:47:38 +0000 (12:47 +0200)
src/Compiler/Compiler.php
src/Compiler/CompilerInterface.php
src/Compiler/DummyCompiler.php

index 3da2c89f3df034a8453f1e83ddc63ed0160d5f93..ec8d65338ac661c8c05b83cd7b0c7243f8476a26 100644 (file)
@@ -5,6 +5,7 @@ namespace Fluidbook\Tools\Compiler;
 use Cubist\Util\Data;
 use Cubist\Util\Files\Files;
 use Cubist\Util\Files\VirtualDirectory;
+use Cubist\Util\Graphics\PDF;
 use Cubist\Util\PHP;
 use Exception;
 use Fluidbook\Tools\Document;
@@ -408,4 +409,8 @@ class Compiler implements ShouldQueue, ShouldBeUnique, CompilerInterface {
     {
         // TODO: Implement addPageBackground() method.
     }
+
+    public function extractPDFArea($file, $page, $rect, $to=null, $options = array(), $cache = null){
+        return PDF::extractArea($file, $page, $rect, $to=null, $options = array(), $cache = null);
+    }
 }
index 7f69ab042c25b1bc496fb29d7cd86d1e1518d64d..c3d4a5a18f69169c2825b693b8746d9edc315d69 100644 (file)
@@ -78,4 +78,6 @@ interface CompilerInterface
     public function addPageBackground($page, $color, $arrowsColor, $image);
 
     public function getExternalMultimediaContents($to);
+
+    public function extractPDFArea($file, $page, $rect, $to=null, $options = array(), $cache = null);
 }
index 3f70533900221d929f68b12ac2cba4b163f13d55..9d24a63c594f1c110c370b436ca3c1ec32723a0f 100644 (file)
@@ -164,4 +164,9 @@ class DummyCompiler implements CompilerInterface {
     {
         // TODO: Implement add3DViewer() method.
     }
+
+    public function extractPDFArea($file, $page, $rect, $to = null, $options = array(), $cache = null)
+    {
+        // TODO: Implement extractPDFArea() method.
+    }
 }