diff --git a/DokuPDF.class.php b/DokuPDF.class.php index a64fffa..bb0e638 100644 --- a/DokuPDF.class.php +++ b/DokuPDF.class.php @@ -2,8 +2,11 @@ // phpcs:disable: PSR1.Methods.CamelCapsMethodName.NotCamelCaps -use Mpdf\Mpdf; use dokuwiki\plugin\dw2pdf\DokuImageProcessorDecorator; +use Mpdf\Mpdf; +use Mpdf\MpdfException; + +require_once __DIR__ . '/vendor/autoload.php'; /** * Wrapper around the mpdf library class @@ -21,6 +24,9 @@ class DokuPDF extends Mpdf * @param string $pagesize * @param string $orientation * @param int $fontsize + * + * @throws MpdfException + * @throws Exception */ public function __construct($pagesize = 'A4', $orientation = 'portrait', $fontsize = 11, $docLang = 'en') {