From bd07ae46b441907a31b7985c326faef05e7df09f Mon Sep 17 00:00:00 2001 From: Eduardo Mozart de Oliveira <2974895+eduardomozart@users.noreply.github.com> Date: Tue, 7 Nov 2023 11:34:17 -0300 Subject: [PATCH] Replace mPDF ImageProcessor with DW2PDF one --- vendor/mpdf/mpdf/src/ServiceFactory.php | 2 +- vendor/mpdf/mpdf/src/Tag.php | 4 ++-- vendor/mpdf/mpdf/src/Tag/Img.php | 1 + vendor/mpdf/mpdf/src/Tag/Tag.php | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/vendor/mpdf/mpdf/src/ServiceFactory.php b/vendor/mpdf/mpdf/src/ServiceFactory.php index 0962a6c3..1e776346 100644 --- a/vendor/mpdf/mpdf/src/ServiceFactory.php +++ b/vendor/mpdf/mpdf/src/ServiceFactory.php @@ -7,7 +7,7 @@ use Mpdf\Color\ColorSpaceRestrictor; use Mpdf\Fonts\FontCache; use Mpdf\Fonts\FontFileFinder; -use Mpdf\Image\ImageProcessor; +use \dokuwiki\plugin\dw2pdf\DokuImageProcessorDecorator as ImageProcessor; use Mpdf\Pdf\Protection; use Mpdf\Pdf\Protection\UniqidGenerator; use Mpdf\Writer\BaseWriter; diff --git a/vendor/mpdf/mpdf/src/Tag.php b/vendor/mpdf/mpdf/src/Tag.php index 33d90b6b..a9081413 100644 --- a/vendor/mpdf/mpdf/src/Tag.php +++ b/vendor/mpdf/mpdf/src/Tag.php @@ -4,7 +4,7 @@ use Mpdf\Strict; use Mpdf\Color\ColorConverter; -use Mpdf\Image\ImageProcessor; +use \dokuwiki\plugin\dw2pdf\DokuImageProcessorDecorator as ImageProcessor; use Mpdf\Language\LanguageToFontInterface; class Tag @@ -53,7 +53,7 @@ class Tag private $colorConverter; /** - * @var \Mpdf\Image\ImageProcessor + * @var ImageProcessor */ private $imageProcessor; diff --git a/vendor/mpdf/mpdf/src/Tag/Img.php b/vendor/mpdf/mpdf/src/Tag/Img.php index 5c68099b..30b357d0 100644 --- a/vendor/mpdf/mpdf/src/Tag/Img.php +++ b/vendor/mpdf/mpdf/src/Tag/Img.php @@ -1,6 +1,7 @@