gottesdienst/mpdf/index.php
2023-03-14 07:16:04 +01:00

30 lines
1.3 KiB
PHP

<?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 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1. Halbjahr</font>
</td>
<td width='700' height='0'style='text-align: left;' valign='bottom'>&nbsp;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();
?>