$customHeader='--custom-header User-Agent '.escapeshellarg($_SERVER['HTTP_USER_AGENT']).' --custom-header-propagation';// By default 'Typo3' expects the same User-Agent for the FE-Session
// Very important: The current lock on session SESSION_NAME has to be freed, cause wkhtmltopdf will use the same
// session in a few moments and this script remains active during that the time and that would cause a deadlock else.
// session in a few moments and this script remains active during that time and that would cause a deadlock else.