Skip to content

Commit

Permalink
Adjustments for chrome flags
Browse files Browse the repository at this point in the history
  • Loading branch information
turbo124 committed Jan 21, 2025
1 parent 36089a1 commit 5ff4c33
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions app/Utils/Traits/Pdf/PdfMaker.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public function makePdf($header, $footer, $html)

// Performance & resource settings
'--disable-dev-shm-usage',
'--disable-software-rasterizer',
'--run-all-compositor-stages-before-draw',
'--disable-renderer-backgrounding',
'--disable-background-timer-throttling',
Expand All @@ -75,18 +74,16 @@ public function makePdf($header, $footer, $html)
'--safebrowsing-disable-auto-update',
'--disable-features=SharedArrayBuffer,OutOfBlinkCors,NetworkService,NetworkServiceInProcess',

'--virtual-time-budget=2000',
'--wait-for-network-idle',
'--virtual-time-budget=5000',
'--font-render-hinting=medium',
'--enable-font-antialiasing',

// Debug/Output
'--dump-dom',
];

// if (config('ninja.snappdf_chromium_arguments')) {
// $pdf->clearChromiumArguments();
// $pdf->addChromiumArguments(config('ninja.snappdf_chromium_arguments'));
// $pdf->addChromiumArguments(implode(' ', $chrome_flags));
$pdf->addChromiumArguments(implode(' ', $chrome_flags));
// }

if (config('ninja.snappdf_chromium_path')) {
Expand Down

0 comments on commit 5ff4c33

Please sign in to comment.