#13218 fix ssl for pdf grpahs

This commit is contained in:
Jonathan 2024-04-16 13:40:54 +02:00
parent 60f8c45836
commit 90ab285a90
1 changed files with 12 additions and 1 deletions

View File

@ -4419,7 +4419,18 @@ function generator_chart_to_pdf(
$browserFactory = new BrowserFactory($chromium_dir);
// Starts headless chrome.
$browser = $browserFactory->createBrowser(['noSandbox' => true]);
$browser = $browserFactory->createBrowser(
[
'noSandbox' => true,
'customFlags' => [
'--disable-dev-shm-usage',
'--disable-gpu',
'--disable-web-security',
'--font-render-hinting=medium',
],
'ignoreCertificateErrors' => true,
]
);
// Creates a new page.
$page = $browser->createPage();