html2pdf
dompdf (önerilir)
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<style>*{ font-family: DejaVu Sans; font-size: 12px;}</style>

require_once 'dompdf/src/Autoloader.php';
DompdfAutoloader::register();

// reference the Dompdf namespace
use DompdfDompdf;

//Convert page content UTF Unicode
$html = mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8');

// instantiate and use the dompdf class
$dompdf = new Dompdf();
$dompdf->loadHtml($html);

// (Optional) Setup the paper size and orientation
$dompdf->setPaper('A4', 'portrait');

// Render the HTML as PDF
$dompdf->render();

// Output the generated PDF to Browser
$dompdf->stream();
jsPDF