<?php require_once("vendor/autoload.php"); /* Start to develop here. Best regards https://php-download.com/ */ // Create an instance of the class: $mpdf = new \Mpdf\Mpdf(); $inhalt="<page backtop=\"0mm\" backbottom=\"0mm\" style=\"font-size: 11pt\" style=\"font-family: arial\"><style type='text/css'> table { font-size: 11px;} .name { font-size: 26px;padding: 1mm} .uttable { font-size: 16px;padding: 1mm} </style> <table width='1000' cellspacing='0' cellpadding='0' border='0'> <tr> <td width='300' height='0' style='text-align: left;' class='name' style='background-color:#D9D9D9;'> Atelierliste<br> <font style='font-size: 14px'>Schuljahr: 2019/2020 1. Halbjahr</font> </td> <td width='700' height='0'style='text-align: left;' valign='bottom'> jeweils zum Halbjahr bei Frau Hartmann abgeben!</td> </tr> </table> </page> "; // Write some HTML code: $mpdf->WriteHTML($inhalt); // Output a PDF file directly to the browser $mpdf->Output(); ?>