diff --git a/src/Document.php b/src/Document.php index d276aa6..d9309bc 100755 --- a/src/Document.php +++ b/src/Document.php @@ -104,6 +104,16 @@ public function printPdf() } + /** + * Print a PDF file to screen and sets filename + */ + public function printPdfInline($filename) + { + $this->finalize(); + return $this->mpdf->Output($filename, 'I'); + } + + /** * Returns instance of mPDF. *