Logging PDF generation on Linux systems
To gather and review the output from the call to wkhtmltopdf
,
redirect the stdout and stderr from wkhtmltopdf
to
a file. Before doing the redirection, ensure that you enabled logging
for Web Reports as it is explained in Logging Web Reports.
Run these steps to do the redirection:
- Make a backup copy of the script /var/opt/BESWebReportsServer/BESReportsData/BESExe/wkhtmltopdf.sh
- Update the script by changing the following line:
as follows:/var/opt/BESWebReportsServer/BESReportsData/BESExe/wkhtmltopdf --enable-plugins --use-xserver --javascript-delay 5000 --no-stop-slow-scripts $optionalparms $arg1 $arg2
By doing so you redirect the stdout and stderr from/var/opt/BESWebReportsServer/BESReportsData/BESExe/wkhtmltopdf --enable-plugins --use-xserver --javascript-delay 5000 --no-stop-slow-scripts $optionalparms $arg1 $arg2 1>/tmp/pdfout.txt 2>&1
wkhtmltopdf
to the /tmp/pdfout.txt file.