protected function _writeTexFile() { $output = $this->_Pdf->html(); $file = sha1($output); $texFile = $this->config('options.output-directory') . DS . $file; file_put_contents($texFile, $output); return $texFile; }