php - DOMPDF not working with boostrap -


ciao, have create pdf file dompdf, if use bootstrap.min.css dompdf not working. if remove files works...

<head>     <meta charset="utf-8">     <meta http-equiv="x-ua-compatible" content="ie=edge,chrome=1">     <title></title>     <meta name="viewport" content="width=device-width, initial-scale=1">     <link rel="apple-touch-icon" href="apple-touch-icon.png">     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">     <link rel="stylesheet" href="../css/bootstrap.css">     <link rel="stylesheet" href="../css/main.css">     <link rel="stylesheet" href="../css/cms.css">     <link rel="stylesheet" href="../css/pagine.css"> </head> <body>     <?php require_once './fattura.php'; ?>     <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>     <script>window.jquery || document.write('<script src="../js/vendor/jquery-1.11.2.min.js"><\/script>')</script>     <script src="../js/vendor/bootstrap.min.js"></script> </body> 

the fattura.php file html content pdf

this code generate content

<?php  require_once("dompdf/dompdf_config.inc.php"); spl_autoload_register('dompdf_autoload');  $filename = 'file_prova'; $dompdf = new dompdf();  $html = file_get_contents('http://localhost:8888/cms-contratto/pagine-contratto/contratto.php');  pdf_create($html,$filename,'a4','portrait');  function pdf_create($html, $filename, $paper, $orientation, $stream=true) {     $dompdf = new dompdf();     $dompdf->set_paper($paper,$orientation);     $dompdf->load_html($html);     $dompdf->render();     i$dompdf->stream($filename.".pdf"); } 

grazie!


Comments

Popular posts from this blog

stringtemplate - StringTemplate4 if conditional with length -

shader - OpenGL Shadow Map -