string Output([string dest [, string name [, boolean isUTF8]]])
Sends the document to a specified destination: browser, file or string. In the case of a browser, the PDF viewer can be used or a download can be forced.
The method first calls Close() if necessary to finalize the document.
dest
Destination where to send the document. Can be one of the following:
The default value is I.
name
The name of the file. It is ignored in the case of destination S. The default value is doc.pdf.
isUTF8
Indicates if name is encoded in ISO-8859-1 (false) or UTF-8 (true). Only used for destinations I and D. The default value is false.
Save the document to a local directory:
$pdf->Output('F', 'reports/report.pdf');
Force a download:
$pdf->Output('D', 'report.pdf');