I am using cakepdf plugin to generate pdf in cakephp application. I am using below configuration for dompdf
Configure::write('CakePdf', [
// 'engine' => 'CakePdf.WkHtmlToPdf',
'engine' => 'CakePdf.DomPdf',
'margin' => [
'bottom' => 15,
'left' => 50,
'right' => 30,
'top' => 45
],
'orientation' => 'landscape',
'download' => false,
'isRemoteEnabled'=> true
// 'enable-local-file-access' => true
]);
I have added 'isRemoteEnabled'=> true
For display image I have used
<img src="<?= WWW_ROOT ?>img/4dx/01/00.png" />
I have also tried by
<?php echo $this->Html->image('4dx/01/00.png', ['fullBase' => true]); ?>
Same result no any change found. $this->Html->image this way also not working for WkHtmlToPdf. I am using PHP version 7.4.x
This image perfectly showing if I use WkHtmlToPdf engine, but for dompdf I am not getting image, it's showing not found. Like below image