Código HTML:
Ver original<?php
include('../../controllers/conexion.php');
require_once("../dompdf_config.inc.php");
include('../../models/Productos.php');
session_start();
ob_start();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <link rel="STYLESHEET" href="css/print_static.css" type="text/css" />
<div id="section_header">
<div class="page" style="font-size: 7pt"> <table class="change_order_items titulo_tabla">
<table class="change_order_items"> <th width="90%">Producto
</th> <th width="7%">Unidad de Medida
</th> <th width="3%" class="nowrap">ID
</th> <?php
$productos = new Productos();
foreach ($productos->ListarTodosProductos() as $one){
?>
<tr class="row<?php echo $color_fila; ?>">
<td class="center"><?php echo $i; ?></td> <td class="left"><?php echo $one -> PROD_NOMB; ?>
</td> <td class="left"><?php echo $one -> UMED_NOMB; ?>
</td> <td class="center"><?php echo $one -> PROD_CODI; ?>
</td> <?php
}
?>
<?php
$html = ob_get_contents();
ob_end_clean();
$dompdf = new DOMPDF();
$dompdf->load_html($html);
$dompdf->render();
$dompdf->stream("prueba.pdf");
?>
ese es mi codigo
y ya cambie el tiempo y todo; pero me sale que el archivo pdf esta dañado. no se a que se debe