<?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');
output
Returns the PDF as a string. The file will open a download dialog by default. The options parameter controls the output.
stream
Streams the PDF to the client. The file will open a download dialog by default. The options parameter controls the output.