Skip to content

Instantly share code, notes, and snippets.

Last active Jul 24, 2021
What would you like to do?
include_once "./vendor/autoload.php";
use Dompdf\Dompdf;
$dompdf = new Dompdf();
include "./imagen.php";
$html = ob_get_clean();
header("Content-type: application/pdf");
header("Content-Disposition: inline; filename=documento.pdf");
echo $dompdf->output();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment