Skip to content

Commit

Permalink
Update Chromium.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kingjia90 authored Feb 12, 2024
1 parent 6702070 commit ca988bc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Processor/Chromium.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,10 @@ public function getPdfFromString(string $html, array $params = [], bool $returnF
} else {
$output = base64_decode($pdf->getBase64());
}
$page->close();
} catch (\Throwable $e) {
Logger::debug('Could not create pdf with chromium: '. print_r($e, true));
$output = (string) $e;
} finally {
$page->close();
$output = (string) $e;
}

return $output;
Expand Down

0 comments on commit ca988bc

Please sign in to comment.