I want to create a pdf with wkhtmltopdf with php (https://github.com/mikehaertl/phpwkhtmltopdf) but I'm getting the error: which: no xauth in ((null)) xvfb-run: error: xauth command not found
I tried to reinstall Xvfb and I tried to install xorg-auth but it didn't work.
I'm using the following code:
$view = "<some-interesting-html></some-interesting-html>"
$pdf = new Pdf($view);
$pdf->setOptions(array(
'no-outline',
'use-xserver',
'commandOptions' => array(
'useExec' => false,
'enableXvfb' => true,
'xvfbRunBinary' => '/usr/bin/xvfb-run',
),
));
if (!$pdf->saveAs($filename)) {
$error = $pdf->getError();
$this->debug($error);
}
I tried it with different options and even without options set but it all returns in the same error
The server is running on CentOS Linux release 7.6.1810 (Core)