CakePdf\Pdf\Engine\TexToPdfEngine::_writeTexFile PHP Method

_writeTexFile() protected method

Write the tex file.
protected _writeTexFile ( ) : string
return string Returns the file name of the written tex file.
    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;
    }