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

        return $texFile;
    }