mirrorMargins = 1; // Use different Odd/Even headers and footers and mirror margins //$mpdf->defaultheaderfontsize = 10; /* in pts */ //$mpdf->defaultheaderfontstyle = B; /* blank, B, I, or BI */ //$mpdf->defaultheaderline = 10; /* 1 to include line below header/above footer */ $aux_encabezado_pdf = $_SESSION[encabezado_pdf]; $mpdf->SetHTMLHeader($aux_encabezado_pdf,''); /* $mpdf->SetHTMLFooter('
Página: {PAGENO}/{nbpg}
'); */ /* fin de encabezado*/ $stylesheet = file_get_contents('../bootstrap/dist/css/bootstrap.min.css'); $stylesheet2 = file_get_contents('http://code.jquery.com/jquery.js'); $stylesheet3 = file_get_contents('../bootstrap/dist/js/bootstrap.min.js'); $mpdf->WriteHTML($stylesheet,1); // The parameter 1 tells that this is css/style only and no body/html/text $mpdf->WriteHTML($stylesheet2,1); // The parameter 1 tells that this is css/style only and no body/html/text $mpdf->WriteHTML($stylesheet3,1); // The parameter 1 tells that this is css/style only and no body/html/text $html_esqueleto = ' Memoria '; $html_esqueleto2 = ' '; $html = $html_esqueleto.$html.$html_esqueleto2; $mpdf->WriteHTML(utf8_encode($html)); //$mpdf->WriteHTML($html); $mpdf->Output(); exit; } ?>