laravel-php-latex icon indicating copy to clipboard operation
laravel-php-latex copied to clipboard

Logfile not found - dryRun

Open lorenz0890 opened this issue 5 years ago • 5 comments

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);
}`

lorenz0890 avatar Mar 11 '19 18:03 lorenz0890

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

lorenz0890 avatar Mar 11 '19 19:03 lorenz0890

Do you have latex installed on the server, so when you run from terminal does it work?

techsemicolon avatar Mar 24 '19 21:03 techsemicolon

I was experiencing the same issue. Installing texlive-full and setting the binPath to /opt/texbin/pdflatex resolved the issue.

aijorgenson avatar Jun 03 '19 22:06 aijorgenson

I was experiencing the same issue. Installing texlive-full and setting the binPath to /opt/texbin/pdflatex resolved the issue.

setting the binPath, Where?

nguyentrongchinh1997 avatar Mar 16 '20 01:03 nguyentrongchinh1997

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');

akmet avatar Dec 06 '20 15:12 akmet