Skip to content

Commit 9df5903

Browse files
committed
fix: print ACL'd images again
The update of the upstream mpdf library in e56751d undid the adjustment made for the images in 0576bb8. Since the approach chosen in that commit was declined upstream (mpdf/mpdf#460), this is now a minimal fix for that problem until we find time to fix it properly upstream. This fix will have to be repeated after every update of the upstream library.
1 parent e56751d commit 9df5903

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

DokuImageProcessorDecorator.class.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace dokuwiki\plugin\dw2pdf;
4+
35
class DokuImageProcessorDecorator extends \Mpdf\Image\ImageProcessor {
46

57
/**

vendor/mpdf/mpdf/src/Mpdf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Mpdf\Css\Border;
1818
use Mpdf\Css\TextVars;
1919

20-
use Mpdf\Image\ImageProcessor;
20+
use dokuwiki\plugin\dw2pdf\DokuImageProcessorDecorator as ImageProcessor;
2121

2222
use Mpdf\Language\LanguageToFont;
2323
use Mpdf\Language\ScriptToLanguage;

0 commit comments

Comments
 (0)