Explorar el Código

卷子生成pdf效果制作

yemeishu hace 2 semanas
padre
commit
e04fe0934a
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      app/Services/ExamPdfExportService.php

+ 2 - 0
app/Services/ExamPdfExportService.php

@@ -123,6 +123,8 @@ class ExamPdfExportService
             '--disable-dev-shm-usage', // 避免容器内 /dev/shm 过小导致崩溃
             '--no-zygote',
             '--single-process',
+            '--disable-features=VizDisplayCompositor',
+            '--user-data-dir=' . sys_get_temp_dir() . '/chrome-user-data',
             '--print-to-pdf=' . $tmpPdf,
             '--print-to-pdf-no-header',
             '--allow-file-access-from-files',