Pārlūkot izejas kodu

优化合并 pdf 功能

yemeishu 10 stundas atpakaļ
vecāks
revīzija
d830f46040
1 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  1. 9 0
      app/Services/ExamPdfExportService.php

+ 9 - 0
app/Services/ExamPdfExportService.php

@@ -1301,12 +1301,21 @@ class ExamPdfExportService
             '--disable-web-security',
             '--disable-features=VizDisplayCompositor',
             '--font-render-hinting=none',
+            '--disable-logging',
+            '--disable-gpu-sandbox',
+            '--disable-partial-raster',
+            '--disable-skia-runtime',
+            '--disable-sync',
+            '--no-zygote',
+            '--single-process',
             '--user-data-dir=' . $userDataDir,
             '--print-to-pdf=' . $tmpPdf,
             '--print-to-pdf-no-header',
             '--allow-file-access-from-files',
             '--virtual-time-budget=10000',
             '--run-all-compositor-stages-before-draw',
+            '--max_old_space_size=512',
+            '--max_new_space_size=64',
             'file://' . $htmlPath,
         ], null, [
             'HOME' => $runtimeHome,