|
|
@@ -119,7 +119,10 @@ class ExamPdfExportService
|
|
|
'--headless',
|
|
|
'--disable-gpu',
|
|
|
'--no-sandbox',
|
|
|
+ '--disable-setuid-sandbox',
|
|
|
'--disable-dev-shm-usage', // 避免容器内 /dev/shm 过小导致崩溃
|
|
|
+ '--no-zygote',
|
|
|
+ '--single-process',
|
|
|
'--print-to-pdf=' . $tmpPdf,
|
|
|
'--print-to-pdf-no-header',
|
|
|
'--allow-file-access-from-files',
|