Skip to content

Commit

Permalink
Increase Timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Dumazeau committed Jul 12, 2024
1 parent 9a0fed1 commit f84d189
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Domain/Pdf/AbstractPdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ abstract class AbstractPdf
protected const TEMPLATING_FOLDER = 'pdf';
protected const MODIFICATION_ALLOWED = true;
protected const OTHER_PAGES = [];
protected const MAX_TIMEOUT = 10000;
protected const MAX_TIMEOUT = 20000;

#[Required]
public TemplatingInterface $templating;
Expand Down
2 changes: 1 addition & 1 deletion src/Domain/Pdf/Trait/PdfGeneratorTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ private function internalGeneratePdf(string $content, int $timeout = 10000): str
$page = $browser->createPage();
$page->setHtml($content, $timeout);
$this->updatePage($page);
$pdf = \base64_decode($page->pdf($this->getPdfOptions())->getBase64());
$pdf = \base64_decode($page->pdf($this->getPdfOptions())->getBase64($timeout));

$browser->close();

Expand Down

0 comments on commit f84d189

Please sign in to comment.