Community post
Crear PDF con Dompdf [PHP]
Aqui le Traigo un código PHP para crear Archivo PDF con tan solo renderizar codigo HTML
require_once("dompdf/dompdf_config.inc.php");
$html1='
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<head>
<title>Archivo pdf</title>
</head>
<body>
$dompdf = new DOMPDF();
html);
$dompdf->render();
header('Content-type: application/pdf');
//echo $dompdf->output();
echo dompdf->output();
$dompdf->stream('PDF');

Replies (0)
Conversation
No replies yet
Replies will appear here as people join the conversation.