I am starting with this library and I have not been able to place the icon of the company when the library is executed.
PHP File
require_once 'dompdf/autoload.inc.php';
ob_get_clean();
use Dompdf\Dompdf;
use Dompdf\Options;
$options = new Options();
$options->set('isRemoteEnabled', true);
$options->set('isPhpEnabled', true);
$options->set('isJavascriptEnabled', true);
$dompdf = new Dompdf($options);
$dompdf->loadHtml(file_get_contents('cabezal.html'));
// $dompdf->setPaper([0, 0, 2550, 3300]);
$dompdf->setPaper([0, 0, 740, 1175]);
$dompdf->render();
$dompdf->stream('pdf', ['Attachment' => 0]);
HTML file
<head>
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport"/>
<meta content="ie=edge" http-equiv="x-ua-compatible"/>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link href="vistas/css/images/fede3.png" rel="shortcut icon" type="image/png"/>
↑↑↑ No muestra el icono ↑↑↑
<title>
FEDERACION.
</title>
<!-- Default theme -->
<body>
<p>
hola
</p>
</body>
</head>
And when he sent a GET through the browser to bring me the icon he brings it and using the same route that I have at <link>
. Instead it shows the XAMPP icon.
What can it be?