rialto-php / puphpeteer

A Puppeteer bridge for PHP, supporting the entire API.
MIT License
1.34k stars 208 forks source link

Help with download pdf from a website #165

Open sebastienextrabat opened 2 years ago

sebastienextrabat commented 2 years ago

Hello :)

I need to download from a website a pdf file (inside a link like : pdf

It seems I can do it with pupeteer :

const page = await browser.newPage(); await page._client.send('Page.setDownloadBehavior', { behavior: 'allow', downloadPath: path});

But I have no idea how to do with puphpeteer ?

Thank you, Sebastien