/** * method to render the content of the pdf file to the browser * @param void * @return void */ public function render() { header('Content-Type: ' . $this->version->getFiletype()); header('Content-Disposition: filename="' . $this->version->getFilename() . '"'); echo $this->pdf->render(); }