$payStub=new mPDF();
$payStub->SetTitle('My title');
$payStub->WriteHTML($pcTableRows);
$payStub->Output('yourFileName.pdf', 'I');
- 'D': download the PDF file
- 'I': serves in-line to the browser
- 'S': returns the PDF document as a string
- 'F': save as file $file_out