Looking at the mPDF documentation for the function SetBasePath(), it says that
From mPDF 5.7 the HTML tag <base href="">
is parsed in the HTML and used to set the base path.
But testing the PDFResource extra, this doesn’t seem to be the case.
When I change the code though, and add the line
$this->pdf->setBasePath($this->modx->getOption('site_url'));
here (on line 289 before WriteHTML()
is called)
the images get added correctly to the PDF file.
I also tried altering the chunk “tplPDF” to include <base href="[[!++site_url]]">
in the <head>
, but that doesn’t seem to work.