Skip to content

Commit

Permalink
review change
Browse files Browse the repository at this point in the history
  • Loading branch information
ITspirit committed Feb 9, 2024
1 parent b3401bb commit 4a3d424
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/Processor/Gotenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4a3d424

Please sign in to comment.