laravel-php-latex
laravel-php-latex copied to clipboard
Logfile not found - dryRun
I get the following error when i want to call the dryRun function. I installed texlive-full on my homestead and laravell-php-latex via composer.
` private function parseError($tmpfname, $process){
$logFile = $tmpfname.'.log';
if(!\File::exists($logFile)){
**throw new LatextException($process->getOutput());**
}
$error = \File::get($tmpfname.'.log');
throw new LatextException($error);
}`
I think the cause could be similar to this problem as i am also getting error code 134 returned by $process->run() https://github.com/bobvandevijver/latex-bundle/issues/14
Do you have latex installed on the server, so when you run from terminal does it work?
I was experiencing the same issue. Installing texlive-full and setting the binPath to /opt/texbin/pdflatex
resolved the issue.
I was experiencing the same issue. Installing texlive-full and setting the binPath to
/opt/texbin/pdflatex
resolved the issue.
setting the binPath, Where?
In case someone stumbles over this:
One can simply call the binPath()
method to specify the path of pdflatex
return (new Latex('latex.tex'))->with([
'name' => 'John Doe',
'dob' => '01/01/1994'
])->binPath('/usr/bin/pdflatex')->download('test.pdf');