質問: document.getElementsByTagName("body")[0]; body.appendChild(form); form.submit(); body.removeChild(form); }); **・エラー ** 2018-03-05 16:10:35 Error: [Cake\Core\Exception\Exception] WKHTMLTOPDF didn't return any data Request URL: Referer URL: Client IP: Stack Trace: 0 /var/www/html/dainingfactory/vendor/friendsofcake/cakepdf/src/Pdf/CakePdf.php(282): CakePdf\Pdf\Engine\WkHtmlToPdfEngine->output() 1 /var/www/html/dainingfactory/vendor/friendsofcake/cakepdf/src/View/PdfView.php(117): CakePdf\Pdf\CakePdf->output('\n\n\nrender(NULL, NULL) 3 /var/www/html/dainingfactory/vendor/cakephp/cakephp/src/Routing/Dispatcher.php(120): Cake\Controller\Controller->render() 4 /var/www/html/dainingfactory/vendor/cakephp/cakephp/src/Routing/Dispatcher.php(87): Cake\Routing\Dispatcher->_invoke(Object(App\Controller\SvreportController)) 5 /var/www/html/dainingfactory/webroot/index.php(37): Cake\Routing\Dispatcher->dispatch(Object(Cake\Network\Request), Object(Cake\Network\Response)) 6 {main}
回答: 無事解決致しました!!!! 1xvbfをインストール 2cakepdf/src/Pdf/Engine/WkHtmlToPdfEngine.php $content = $this->_exec($this->_getCommand(), $this->_Pdf->html());を下記に変更。 $content = $this->_exec('xvfb-run -a -s "-screen 0 640x480x16" ' . $this->_getCommand(), $this->_Pdf->html()); 以上です。 ありがとうございました。