Skip to content
Discussion options

You must be logged in to vote

This package uses browsershot :) I would recommend using this package and use my fork if you would like to save directly to S3 from your lambda. Here is how you can use it:

$pdf = Pdf::view('view.name', $data);
$pdf->withBrowsershot(function (Browsershot $browsershot) {
    $browsershot->setOption('args', ['--disable-web-security']);
    $browsershot->waitUntilNetworkIdle();
});
$pdf->onLambda()->disk('s3-bucket')->save('example.pdf');

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@rvzug
Comment options

@james-astra
Comment options

Answer selected by james-astra
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
3 participants
Converted from issue

This discussion was converted from issue #116 on April 08, 2024 06:55.