/** * Save the PDF directly to the server. * * @param string $to * @param boolean $append * @throws Exception * @return \Pop\Pdf\Pdf */ public function save($to = null, $append = false) { // Format and finalize the PDF. $this->finalize(); parent::save($to, $append); return $this; }
/** * Save the code object to disk. * * @param string $to * @param boolean $append * @return void */ public function save($to = null, $append = false) { $this->render(true); parent::save($to, $append); }