'How to export PDF from page.html with css DomPDF
actually i'm using domPDF to print pages into PDFs the issue is all the PDF i've print from externe pages ,has no CSS
this an exemple :
<?php
require __DIR__ . '/vendor/autoload.php';
use Dompdf\Dompdf;
$dompdf = new Dompdf();
$html = file_get_contents('page.html');
$dompdf->loadHtml($html);
$dompdf->setPaper('A4', 'landscape');
$dompdf->render();
$dompdf->stream();
The page.html has links of bootstrap
Question :
How to add external url with their css ? I do not know if this is even possible. Thanks for the help ;)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
