소스 검색

卷子生成pdf效果制作

yemeishu 2 주 전
부모
커밋
19bc5b5965
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      app/Services/ExamPdfExportService.php

+ 3 - 0
app/Services/ExamPdfExportService.php

@@ -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',