OutputHttpDownload()
mPDF ≥ 8.1.2
OutputHttpDownload – Finalise the document and return binary data of resulting PDF.
This methods sets HTTP headers using standard header
PHP function.
Description
void OutputHttpDownload(string $filename)
Parameters
- $filename
-
The filename to send for the downloaded file.
Examples
<?php
$mpdf = new \Mpdf\Mpdf();
$mpdf->WriteHTML('Hello World');
$mpdf->OutputHttpDownload('download.pdf');
Changelog
Version | Description |
---|---|
8.1.2 | Method was added. |