From 3d386f4c66f84b08fa3407730f2d0d5289227afa Mon Sep 17 00:00:00 2001 From: isUnknown Date: Thu, 5 Mar 2026 09:12:57 +0100 Subject: [PATCH] Add --print-background flag to pagedjs-cli URL generation Co-Authored-By: Claude Sonnet 4.6 --- src/Services/PdfGenerator.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Services/PdfGenerator.php b/src/Services/PdfGenerator.php index 6e91688..cab6c5e 100644 --- a/src/Services/PdfGenerator.php +++ b/src/Services/PdfGenerator.php @@ -56,6 +56,7 @@ class PdfGenerator $cmd .= escapeshellcmd($this->config['pagedjs_bin']); $cmd .= ' ' . escapeshellarg($url); $cmd .= ' -o ' . escapeshellarg($pdfFile); + $cmd .= ' --print-background'; if (!empty($options['timeout'])) { $cmd .= ' --timeout ' . (int)$options['timeout'];