From 1fce06379d7bd928569b371e1aee8dc78d727de0 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 7 Aug 2025 12:47:38 +0200 Subject: [PATCH] wip #7684 @3 --- src/Compiler/Compiler.php | 5 +++++ src/Compiler/CompilerInterface.php | 2 ++ src/Compiler/DummyCompiler.php | 5 +++++ 3 files changed, 12 insertions(+) diff --git a/src/Compiler/Compiler.php b/src/Compiler/Compiler.php index 3da2c89..ec8d653 100644 --- a/src/Compiler/Compiler.php +++ b/src/Compiler/Compiler.php @@ -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); + } } diff --git a/src/Compiler/CompilerInterface.php b/src/Compiler/CompilerInterface.php index 7f69ab0..c3d4a5a 100644 --- a/src/Compiler/CompilerInterface.php +++ b/src/Compiler/CompilerInterface.php @@ -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); } diff --git a/src/Compiler/DummyCompiler.php b/src/Compiler/DummyCompiler.php index 3f70533..9d24a63 100644 --- a/src/Compiler/DummyCompiler.php +++ b/src/Compiler/DummyCompiler.php @@ -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. + } } -- 2.39.5