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'];