OutputFile()
mPDF ≥ 8.1.2
OutputFile – Finalise the document and save resulting PDF to file
Description
void OutputFile(string $filename)
Parameters
- $filename
-
The path to file to save.
Examples
<?php
$mpdf = new \Mpdf\Mpdf();
$mpdf->WriteHTML('Hello World');
$mpdf->OutputFile(__DIR__ . '/file.pdf');
Changelog
Version | Description |
---|---|
8.1.2 | Method was added. |