From 4a3d424c4269943bca541a33df5d95efcbab9151 Mon Sep 17 00:00:00 2001 From: Michael Frank Date: Fri, 9 Feb 2024 11:39:08 +0100 Subject: [PATCH] review change --- src/Processor/Gotenberg.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/Processor/Gotenberg.php b/src/Processor/Gotenberg.php index e5506c5..d0ebf8c 100644 --- a/src/Processor/Gotenberg.php +++ b/src/Processor/Gotenberg.php @@ -155,18 +155,11 @@ public function getPdfFromString(string $html, array $params = [], bool $returnF $chromium->paperSize($params['paperWidth'] ?? 8.5, $params['paperHeight'] ?? 11); } - if (isset($params['userAgent']) && method_exists($chromium, 'userAgent')) { - $chromium->userAgent($params['userAgent']); - } if (isset($params['extraHttpHeaders'])) { $chromium->extraHttpHeaders($params['extraHttpHeaders']); } - if (isset($params['pdfFormat']) && method_exists($chromium, 'pdfFormat')) { - $chromium->pdfFormat($params['pdfFormat']); - } - $request = $chromium->outputFilename($tempFileName)->html(Stream::string('processor.html', $html)); if ($returnFilePath) {