Hola a todos,
Estoy trabajando en la creación de un pdf, esto a partir de un html, en fin todo va bien, pero ahora se me ocurrió ponerle el header a todas las paginas que encuentre y vi que se podía hacer, seguí este ejemplo
pagina que vi en internet
y mi codigo
es el siguiente:
<html>
    <head>
    <style type="text/css">
    .container_12 {
        margin-left: 25px;
        margin-right: 25px;
    }
     #header { position: fixed; left: 0px; top: -180px; right: 0px; height: 150px; background-color: orange; text-align: center; }
    #footer { position: fixed; left: 0px; bottom: -180px; right: 0px; height: 150px; background-color: lightblue; }
    #footer .page:after { content: counter(page, upper-roman); }
    </style>
    </head>
    <body>
        <div id="header" >
                <table width="100%">
                    <tr>
                        <td width="55%"><img src="img/iconleft.png" height="35px" width="160px"></td>
                        <td>Ericsson Internal <br>
                            METHOD OF PROCEDURE (29)
                        </td>
                    </tr>
                </table>
                <table width="100%" border="1">
                    <tr>
                        <td>Prepared (Subject resp) <br>
                        TAM/
                        </td>
                        <td colspan="2">No.</td>
                    </tr>
                    <tr>
                        <td>Approved (Document resp)  |Checked </td>
                        <td>Checked Date  | Rev</td>
                        <td>Reference</td>
                    </tr>
                </table>  
        </div>
        <div id="content">
    <p>the first page</p>
   <p style="page-break-before: always;">the second page</p>
  </div>
    </body>
</html>
<?php
require_once("dompdf/dompdf_config.inc.php");
$dompdf = new DOMPDF();
$dompdf->load_html(ob_get_clean());
$dompdf->render();
$pdf = $dompdf->output();
$file = "mopsdown/".$id1.".pdf";
file_put_contents($file,$pdf);
$dompdf->stream($pdf);
?>
sin embargo, no consigo que el header se repita, alguien que me pueda ayudar?



