<?php
require_once 'mPDF/vendor/autoload.php';
$mpdf = new mPDF('s','A4',8,'freesans',20,10,10,10);
$mpdf->WriteHTML('<html><head></head><body><h1>Hello, world!</h1></body></html>');
$mpdf->Output("hello_world.pdf", 'I');
Web fonts are fonts that are hosted on a web server. You do not have rights to:
- copy fonts from a Windows installation to a web server, a process known as web font “self-hosting”.
- convert the font to the formats typically associated with web fonts, such as the WOFF or WOFF2 format.